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

Can I access the SHA1 hashes for files?

From: Xn Nooby <xnooby_at_gmail.com>
Date: Fri, 16 Jul 2010 16:10:21 -0400

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.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2634168

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-07-16 22:10:34 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.