Compute hash for mailbox file?

Jeremy Kerr jk at ozlabs.org
Thu Apr 14 19:37:48 EST 2011


Hi Wolfgang,

> I'm trying to find a way to match a given mailbox file to an entry in
> patchwork so that I can modify it using pwclient.  It appears the best
> way would be to compute the has of the mailbox file and use this with
> the "-h <hash>" option.
> 
> Is there an easy way to do that?

There is a way, but it's a bit clunky at the moment. You need parser.py
from the patchwork source tree. If you don't have a tree handy, it's at:

http://git.ozlabs.org/?p=patchwork;a=blob_plain;f=apps/patchwork/parser.py;hb=HEAD

then run:

 ./parser-py --hash < foo.patch

Cheers,


Jeremy



More information about the Patchwork mailing list