Rename a Subversion Repository
The scenario: You have a folder called code-repo where you keep all your svn repositories (let’s assume it is located in the root c:/ on a Windoze system). You have a repository named xproject. For some reason you need to rename the repository. Let’s say it needs to by yproject. There are 3 steps to rename the repository and retain all the history you have in the repo.
- Create an svn dump file of the xproject repo:
svnadmin dump C:\code-repo\xproject > c:\xproject.dmp - Create the new yproject svn repo:
svnadmin create C:\code-repo\yproject - Load the dump of the old repository into the new one:
svnadmin load C:\code-repo\yproject < C:\xproject.dmp
Sweet.


June 15th, 2010 at 2:54 pm
Thanks for the instructions. It helped.
July 19th, 2010 at 9:34 am
Very helpful. Thank you!
September 20th, 2010 at 10:53 am
Why not just rename the repository directory on the SVN server? I don’t think the actual folder name is in any way tied into database information…that would skip all the wasted time to dump and reload the database…there should be no reason to generate a new database.
December 10th, 2010 at 2:40 pm
Not sure that would work as SVN can be either FSFS or BDB backend. With BDB that would be disastrous.