Hi,
Is is possable to change the directory structure of an existing SVN repository?
I have the following structure:
\trunk
\branches
\releases
I would like to change the \releases folder to \tags
Cheers Sean
Hi,
Is is possable to change the directory structure of an existing SVN repository?
I have the following structure:
\trunk
\branches
\releases
I would like to change the \releases folder to \tags
Cheers Sean
svn mv releases/ tags/
svn commit -m "move releases/ to tags/"
Then if you want to recreate the releases folder
svn mkdir releases
svn commit -m "recreate releases folder"
Sure - they're just directories. Just do
svn move releases tags
or use a visual SVN client to do the moving, like SmartSVN
The "rename" command is probably what you need. It will keep revision history and allow you to change directories of files.
If you want to do this on a working copy that has all of those checked out from the root, then the answers from Andrew and Artem are fine. Don't forget to commit the change!
I don't like to have all of my tags checked out, so in that case, you would need to use URL parameters.
For example:
svn move svn://svnmachine/repository/release svn://svnmachine/repository/tags
FYI: mv
, rename
, move
, and ren
are all the same command, which are equivalent to a copy
and delete
.
No problem, use svn move. You can do the move locally and then do a checkin (it requires you to checkout the whole svn repository in this case).
You can also do the move remotely:
svn move svn+ssh:user@host//myrepo/releases svn+ssh:user@host//myrepo/tags
If you are using TortoiseSVN, you can do this action when browsing the repository.