Reputation: 11
I have a subversion checkout and I have about 30 switches from different folders in the checkout to branches. I want to do the same on another computer, but I dont want to manually create all the switches again. Is there a way to export the switches from my current checkout and import them into a separate checkout ?
Upvotes: 1
Views: 25
Reputation: 2304
Ah.. Okay, I understand now. Thank you for clarifying. You actually have yourself in a bit of a pickle using the method you're currently using.
Here is the problem that you have. You have a root checkout folder with a bunch of "sub-projects" so to speak. My organization actually uses a structure similar to this. The method you all are using right now however, unfortunately requires you to do either one of two options:
The method you're using currently, checking out the root directory which then checks out all of the sub-projects.
Check out all of the sub-projects you need individually (which takes a long time).
The problem with this method is the issue you're asking about currently. In order to do this again, you have to go through the tiresome process of checking everything out and switching again.
However, there is a much, much easier solution to your issue. And that's using the svn:externals property. Inside of your root
directory, you can make another folder called MyProject
for example. For this folder MyProject
, you can add a list of svn:externals (Paths to those 30 sub-folders of yours) and set them as properties on the MyProject
folder. Now, whenever you checkout MyProject
(regardless of what computer you're on) it will checkout that folder with that set of properties (i.e. One svn checkout
call that additionally checks out all of your sub-projects without having to do 30 different svn switches). Now, every time you make a new branch of those initial sub-projects, instead of doing svn switch
on every directory, all you have to do is update the list of properties on the MyProject
folder to point to the branch of your choosing.
Upvotes: 1