[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is there a way to dump the checksums from a svn repo?

From: olli hauer <ohauer_at_gmx.de>
Date: Thu, 29 Nov 2012 22:24:54 +0100

On 2012-11-29 19:24, Philip Martin wrote:
> olli hauer <ohauer_at_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.
Received on 2012-11-29 22:25:30 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.