4

I have a SVN dump with some manually modified code in it, an I'm tryng to load the dump back into a repository. The problem is now I have checksum failures for the changed revisions. Is there any way to recalculate the md5 checksums for the entire dump file, or at least force svnadmin to load it?

bahrep
  • 29,961
  • 12
  • 103
  • 150
Tudor Carean
  • 972
  • 2
  • 12
  • 22

3 Answers3

1

In some cases you don't need the md5 checksum. I was having this problem and simply removing those lines worked.

sed -i '/Text-copy-source-md5/d' repo.dump

ianaré
  • 3,230
  • 26
  • 26
  • Yup, it really worked for me - I had this problem after using https://github.com/jasperlee108/svndumpfilterIN/ - I just removed md5 hashes and everything worked properly. Thanks! – Jehy Aug 07 '15 at 12:43
0

I had the exact problem and I fixed by removing the checksum lines entirely:

sed '/Text-content-md5/d' dumpfile.txt | svnadmin load repo --bypass-prop-validation
bekce
  • 3,782
  • 29
  • 30
0

During the load the new checksum will be printed out (as far as i remember) as part of the error message...Just take the checksum and put into the field in the dump file instead.

khmarbaise
  • 92,914
  • 28
  • 189
  • 235
  • I'm talking about a lot of files. Manually doing this would be very timeconsuming, especialy since I only get one md5 error at a time. Idealy I'd like to recalculate all of them or make svnadmin ignore hem completly – Tudor Carean Jul 21 '11 at 14:58
  • 1
    Hm..Ok...may be you can take a look here: http://svn.borg.ch/svndumptool/ and see if it's possible to use the code a way you need it. – khmarbaise Jul 22 '11 at 05:48