Here's what I did, I have installed svnserve as a service and I started it with the net start svn service command. I typed svn ls svn://localhost to test the service but it returned the error as stated in the title of this post.
I entered svn --version and svnserve --version on my computer to find out the version numbers and the client and the server version is the same, version 1.5.6. I'm guessing the error appears due to different versions of the server and the client.
When I start the server using svnserve --daemon --root command in cmd, The error still appears.
Why does the error appear? Thanks
The latest version of Zend Studio (8.x) has an SVN tool which gives the same error about finding format 4, but expecting format 1-3. I had created my repository using CollabNet SVN (about a year ago) and was unable to open the repository from within Zend Studio.
I think the best solution (at least for my case where I want to work with Zend Studio and not fight with it) is to recreate your repository with the old version of SVN. The URL for SVN 1.3 for Windows is:
http://subversion.tigris.org/files/documents/15/32856/svn-1.3.2-setup.exe
After installing this, make sure you are executing the svnadmin.exe and svn.exe in the newly installed version 1.3 directory in case you have already installed CollabNet SVN (which has a default install directory of c:/csvn).
I have the same problem but I had resolve it with a different approach
The issue mainly is the db/format file where it expects a "2" best way to check is to ope the file
If you get this
Then you should change them to say
Its better to also check you current file
It you get only this (e.g. 0 meaning reviosion number 0)
Then you should change them to just say (e.g. 0 meaning revision number append "nx" and also "2" )
Finally Check also if your directory structure for the revs and revprops is sharded or looks something like this
change it to a non folder structure
Note: the revision file (e.g. 0) is just inside the revs directory, no more other folder should be there
Same goes with revprops change
to
I delete my old repository and create a new one using command line -> svnadmin create C:\SvnRepository
*old repository was created by right clicking on the folder and click "Create Repository here"
Thanks, Joe. I had both CollabNet SVN server and VisualSVN installed and was getting errors until I made sure I was using the version of svnadmin that came with VisualSVN (which I had used to create the repositories).
If you are using VisualSVN server, Make sure your command looks similar as below
Sample Command: C:\Program Files\VisualSVN Server\bin>svnadmin dump c:\repo > c:\backup\svnbacku p.dump
well i have also faced the same problem. just open your svn remote folder you have made. in your db folder you have format file. just replace the no. with 1. if it does not work try 2, and 3.