Renaming SVN repository project name

thetna picture thetna · Oct 29, 2010 · Viewed 66.3k times · Source

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.

Answer

Diego Lago picture Diego Lago · Jan 22, 2013

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.