How to change the UUID of a SVN repository

When you create a new repository in SVN server it assigns an universally unique identifier (UUID). This is used by Subversion clients to verify the identity of a repository when other forms of verification aren’t good enough (such as checking the repository URL, which can change over time).


 

Recently I mirrored a remote svn repository (read-only) in our local environment and when I needed to commit some changes in my working copy to the local repository, it threw an UUID mismatch. To resolve this issue, I had to run the following command in SVN server.

svnadmin setuuid /var/svn/repo-mirror 2109a8dd-854f-0410-ad31-d604008985ab

Note: Changing the UUID in a working copy will be tough one, specially if u have large amount of files in the repository. This require changing the entree file inside svn folder.

One thought on “How to change the UUID of a SVN repository

Leave a Reply

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