Error * Expected format ‘3’ of repository; found format ‘5’

What gives this error?

I’m using svnserve.exe on windows (svn-win32-1.3.2). When trying to connect with TortoiseSVN (1.4.3, Build 8645) I get the error.

The repository has been copied from another machine, where it ran fine, possibly using an older version of the svn server.

TIA!

 

 

 

Hi there,

exactly what you’ve written. you copied the repository from a machine where Subversion 1.4 has been running. you shouldn’t simply copy the repos.

Just do an svnadmin dump of the source machine and make an svnadmin load on your destination machine.



Subversion’s repository database schema has changed occasionally during development. Old repositories, created with a pre-1.0 development version of Subversion, may require the following operation when upgrading. If a schema change happens between Subversion releases X and Y, then repository administrators upgrading to Y must do the following:



  1. Shut down svnserve, Apache, and anything else that might be accessing the repository.
  2. svnadmin dump /path/to/repository > dumpfile.txt , using version X of svnadmin.
  3. mv /path/to/repository /path/to/saved-old-repository
  4. Now upgrade to Subversion Y (i.e., build and install Y, replacing X).
  5. svnadmin create /path/to/repository, using version Y of svnadmin.
  6. svnadmin load /path/to/repository < dumpfile.txt , again using version Y of svnadmin.
  7. Copy over hook scripts, etc, from the old repository to the new one.
  8. Restart svnserve, Apache, etc.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.