[darcs-users] New patch name format details?

Kevin Smith yarcs at qualitycode.com
Wed Nov 19 16:16:21 UTC 2003


David Roundy wrote:
> On Tue, Nov 18, 2003 at 09:05:30PM -0800, Kevin Smith wrote:
> 
>>I'm struggling a little trying to understand exactly what goes in to a 
>>new-format patch filename. Here's the code from PatchInfo.lhs:
> 
>>I tried to get the same value for author name, using sha1sum. The couple 
>>test cases I tried (with "David Roundy <droundy at abridgegame.org>") gave 
>>different results from the corresponding patch file name. Do I need to 
>>append something to the end?
> 
> Hmmmm.  Could be you've accidentally added a newline? 

Oops. User error, as you suspected. It works fine with echo -n.

However, I'm not sure how to go end-to-end. I'm looking at patch:
20031111133710-53a90-571b3e16fbbabd024c6cb1a7c8cff6a223b0e7cc.gz

Here's the top of that patch file:
[give error message on duplicate entries in defaults.
David Roundy <droundy at abridgegame.org>**20031111133710]  < > {
h

Here's the sha1 I tried (and the result):
kevins at debian:~/work/yarcs$ echo -n "give error message on duplicate 
entries in defaults.David Roundy 
<droundy at abridgegame.org>20031111133710" | sha1sum
d792ff1a32539ba3f8300b29915d18a05deb8477  -

I also tried it with the ** and/or with a single space at the very end 
to represent the null log entry. Unfortunately, with sha1, you can't 
even tell whether or not you're really close to getting it right :-)

Any idea what I am missing?

Thanks!

Kevin





More information about the darcs-users mailing list