Subversion Corruption Recovery

Something went wrong in subversion, and now I run into

svnadmin: Invalid diff stream: [tgt] insn 0 starts beyond the target view position

if I try to dump from the repository. We have another question about this here Subversion repository error , but the solutions are not good enough for me because the damage is 85 changes back.

Since corruption is in one not so important directory (not in trunk / branch / tags), I thought of two solutions:

  • Create a dump from the healthy part and after importing into a new repository, fix the differences from important directories (losing the entire history of changes)
  • Create a dump from the healthy part and write a ruby ​​script that will check each revision of the necessary directories in the old repository. This will create a diff file for revision and transfer it to a new repository with the authors name and original comment.

Any comments? :)

/ JaanusSiim

+5
source share
1 answer

If you really need access to your sources, I would recommend that you send your mail to users@subversion.tigris.org with your problem. Some users read this list, which has the experience of repairing damaged repositories. (In many cases, it was not listed, since restoring the source code usually requires NDA)

dumpfile , , .

+2

All Articles