1
votes

I have an old repository that I have no dump file for. I do have the complete repository, though, and am hoping that I can get it running on a new system.

I tried reading Recover svn from directory backup after server failure which gives me hope, but doesn't seem to have worked for me. Whenever I point TortoiseSVN or svnadmin at the repository folder to examine it, it reports "No such revision 1" despite there being 130 revs in the db folder.

Any advice you could offer would be greatly appreciated.

Tony

2
At which exact URL did you point TortoiseSVN?Wim Coenen
to the repository folder name - C:\Path-to-repository\Tony Haddon
to confirm... the repo is on my hard drive, so it's file:///C:/path-to-repo/Tony Haddon
Apparently you don't have the complete repository. The file for revision 1 is missing.Wim Coenen
So does that mean I'm doomed then?Tony Haddon

2 Answers

1
votes

you can always create a dumpfile by using

svnadmin dump [PATH_TO_REPO] > newDump.dmp

However, I doubt you will succeed as the error message indicates that there is simply something wrong with your revisions.

Is there an file called "1" insinde the db/revs-dir?

1
votes

This blog post mentions the error message, abide with a different revision number.

I noticed that the error claimed that revision 296 did not exist and indeed, when I opened the db/revs folder it only went up to 295. With a completely wild guess, I opened the /current file and noticed that it had the 296 revision number on it, so I assumed this is the pointer to the latest revision, but the data never made it to the server... I modified the number to 295 and everything immediately started working.

That's a bit of hack though.