As we are migrating with a project to a public source hosting, I wanted to remove some “personal” information from the SVN repository. I did fine so far with removing paths or revisions using svndumptool
and svndumpfilter
. However I want to remove some text from a particular file in the repository as well.
I removed the text manually by regex’ing the dump and that worked fine, but when I want to use the dump, I get a checksum mismatch. This is obviously because I changed the file but didn't update the checksum.
Is there any tool that recalculates the checksum for the files in a dump? Or is there a good editing tool for files (should allow regex replacements) inside a svn dump that also updates the checksum?
sed '/Text-content-md5/d' dumpfile.txt | svnadmin load repo
to remove the checksum check for desired revisions. – Zaria