Reputation: 505
I've read about the svn move
command but haven't been able to use it the right way... Here's my situation: I have a project with 5 components. Right now, I've made separate Repositories for each component and they all have a flat structure. I'd like to move all these components into a single repository so that I'd finally have a structure like:
/Project
/Component1
/branches
/tags
/trunk
/Component2
/branches
/tags
/trunk
And the existing code of each component would be in the trunk
directory of each component, all set for us to branch/tag it.
An example of the svn move
command to accomplish this would be REAL helpful.
Thanks in advance,
Jim
Upvotes: 2
Views: 2024
Reputation: 96626
Another try (since I missed the "separate repositories" part in my first answer):
This is how I "merged" several repositories into one.
BTW: this is done using the subversion command line client
Upvotes: 2
Reputation: 13727
Number 2 in this list of tips is how to move things: http://onlamp.com/pub/a/onlamp/2004/08/19/subversiontips.html
An alternative is to do Exports from the individual repositories to get the project files by themselves without SVN information. Then you could add them to your new repository.
Upvotes: 1
Reputation: 27986
Since you're moving across different subversion repositories you're going to need more then just the move command as this only works within a single command. There's a good article here about how to do a move across repositories.
Upvotes: 3
Reputation: 96626
I think the easiest way to reorganize your repository is to use the "repository browser" of TortoiseSVN. There you can move and rename folders just like in windows explorer.
So if you have
/Project
/Component1
/<source files>
you can:
Component1
to trunk
Component1
Component1
branches
and tags
folderUpvotes: 0