Philip Martin wrote on Thu, Nov 29, 2012 at 18:24:38 +0000: > olli hauer <oha...@gmx.de> writes: > > > Is there a way to dump the checksums from a svn repo? > > > > What I'm doing at the moment on masters and slaves is > > $> svnadmin verify > > and > > $> sqlite $repo/db/rep-cache.db "select hash,revision from rep_cache" > > > > then additional comparing the sqlite output from master and slaves. > > > > Since rep-cache is not used during read requests it would be nice to have > > for example a parameter for svnadmin verify to output the checksums so > > they can be compared between master and slaves. > > > > Is there way for example via the python/perl API? > > > > Thanks for every answer and code snippet ... > > I did it in C but I suppose you might be able to use the Python > bindings. I did > > svn_fs_open() > svn_fs_revision_root(N) > svn_repos_replay2(N-1) > > which drove an editor from rN-1 rto rN and the editor did nothing except > extract the checksum from the close_file callback.
This will only give you the precalculated checksum stored as a metadata attribute within the backend --- it's not going to checksum the file on-the-fly to compute the actual checksum.