On 2012-11-29 19:24, Philip Martin wrote:
> 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.
> 

Thanks for the hint, I will do some tests with your promised snipped.

Reply via email to