[darcs-users] Patch hash calculation
droundy at abridgegame.org
Thu Nov 4 11:23:03 UTC 2004
On Thu, Nov 04, 2004 at 08:00:11AM +0100, Tomasz Zielonka wrote:
> On Wed, Nov 03, 2004 at 02:44:29PM -0800, Kannan Goundan wrote:
> > Looking at the sources it looks like SHA1 is being used. I tried
> > giving the "sha1sum" utility various subsets of the patch text but
> > couldn't match it up with Darcs's checksum. Does anybody know how to
> > calculate the checksum for a patch text?
> SHA1 is calculated only from the "patch info" part of the patch, but
> looking at the code I think I will be difficult to prepare the input
> for SHA1 by hand.
Anthony Towns has written perl code to do the hash calculation, which is
part of his "darcs-repo". You can search (or browse) the archives for the
URL from which to darcs get.
More information about the darcs-users