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

Re: Can I access the SHA1 hashes for files?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Fri, 16 Jul 2010 23:04:52 +0100

On 16 July 2010 21:10, Xn Nooby <xnooby_at_gmail.com> wrote:
> On a Windows desktop, I have two different directories on my
> hard-drive, each one is a working copy checked out from different
> repositories.  The repositories are on different Subversion servers.
> I would like to compare the files in the two directories as quickly as
> possibly. The directory structures are essentially the same.
>
> I believe Subversion stores an SHA1 hash for each file in the hidden
> ".svn" directories.  Is it possible for me to access these SHA1
> checksums so that I can quickly compare the files?
>
> For example, say I have two files called BIGFILE.DAT, located at:
> c:\dira\BIGFILE.DAT and c:\dirb\BIGFILE.DAT.  Can I use Subversion's
> SHA1 checksums to quickly compare them?
>
> If so, how are the SHA1 checksum's accessed?  I'm doing this task in a
> ruby script, but I can also compile a C program.

You are better off asking questions about the internals of Subversion
on the subversion users mailing list.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634242
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-17 00:05:04 CEST

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

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