Rename Repository in SVN

If you ever need to rename a folder inside a repository, it is straightforward. However, renaming the repository and maintaining all the history is something not directly available.

Thankfully, it is a matter of two minutes. Here is a quick walk-through on a Windows server, but same applies to any other OS hosting SVN server.

Start command prompt and navigate to your the root folder of your repositories. (You can right click on Visual SVN server, point to All Tasks, and click Start Command Prompt)

  • Rename the directory using REN

D:\Repositories>ren old_repo_name new_repo_name

  • Once it is done, generate a new UUID using svnadmin

D:\Repositories>svnadmin setuuid new_repo_name

That’s it! Simple, fast, and efficient!

Leave a comment

Your email address will not be published. Required fields are marked *