I have migrated a project from CVS to SVN. Now I need to rename that project. What can be the best possible way to rename it, keeping the all the history intact. The project folder contains some 100 numbers of C and its header files.
Just remove the . svn folder inside the required folder then the control will be automatically removed.
If you right-drag the folder and use "SVN move versioned item(s) here", then you keep the history. Even the history of the files within the folder.
Because branches and tags are ordinary directories, the svn move command can move or rename them however you wish.
Right click the any folder and choose TortoiseSVN -> Repo Browser. Then point to your local repository in the URL field. Once open you could be able to browse the repo, and with a right click, delete the folder.
In order to rename a repository you only have to rename its root directory and generate a new UUID. Assuming the repository is in /var/svnroot/my_repo
you have to run this commands (as root) to rename a repository:
$ mv /var/svnroot/my_repo /var/svnroot/my_new_repo $ svnadmin setuuid /var/svnroot/my_new_repo
After that, you can access it through your favorite protocol.
The original answer (which got accepted) was relevant at the time the question was asked, for the original questions (which has since been edited as well).
Things have changed and as others have pointed out in this thread, there are now better ways to rename repositories and/or projects inside a repository.
I'm going to convert this answer to a community wiki and let others maintain it forward to ensure it stays relevant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With