On Tue, May 13, 2014 at 10:16 AM, Ben Reser <b...@reser.org> wrote:
> On 5/12/14, 2:49 PM, Dan Ellis wrote:
>> When performing an svn info on a local working copy, I can see the file's
>> checksum (sha-1 specifically), but this doesn't work on repositories.  It 
>> would
>> be really nice and save some bandwidth if I could simply compare checksums
>> versus performing a diff.  Is there support in the SVN server API that 
>> supports
>> this property?  If so, is there any interest from the developers to add this
>> xml tag?
>

> Given that 1.8 solves your --summarize issue, unless there's some other use
> case for this I'm not sure it's worth exposing.

My only use case would be one of performance.  How does the current
implementation of a diff from a local WC file to a server repository
file work?  Since it doesn't sound like the server can expose the
checksum right now, I assume the client must bring over a copy of the
file's content to do a diff against (even a summary only diff).
Simply using a checksum comparison would be much more efficient for
comparing large numbers of files (or files with large content).


> You're of course welcome to send in a patch.  You basically just need to 
> expose
> it as a live property (to use the terms from DAV), which the client could
> request specifically or just get when requesting all such properties as we do
> when doing info over DAV.  With svnserve the stat command would need to start
> returning it.  To retrieve the data you'd use svn_fs_file_checksum().

I'll take a look, though I barely know how to spell DAV.

Thanks for all the help!
Dan

Reply via email to