Re: [PATCH v3 0/5] Resolve issues with 'tools' scripts

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 16:11 +1100, Daniel Axtens wrote: > Stephen Finucane writes: > > > There are two scripts provided in tools that reference the removed > > hash function of the 'parser' script. Move this hash function back > > into > > its own module and update these scripts to use said modul

Re: [PATCH v3 2/5] parser: Trivial rename of functions

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 13:49 +1100, Daniel Axtens wrote: > > -delegate = find_delegate(mail) > > +delegate = find_delegate_by_header(mail) > >  if not delegate and diff: > >  filenames = find_filenames(diff) > > -delegate = auto_delegate(project, filen

Re: [PATCH v3 1/5] parser: Remove unused parameter

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 12:13 +1100, Daniel Axtens wrote: > Looks good to me. > > Happily this should make the tests a little faster, which is always > nice :) > > > diff --git a/patchwork/tests/test_parser.py > > b/patchwork/tests/test_parser.py > > index 96166ad..e4a379d 100644 > > --- a/patchwor

Re: [PATCH v3 5/5] tools: Update to use 'hasher'

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 15:42 +1100, Daniel Axtens wrote: > Hi, > > >  local hash > > -hash=$(git show -C $1 | python $PWDIR/parser.py --hash) > > +hash=$(git diff "$1~..$1" | python $pwpath/hasher.py) That's a good point - I don't think the existing code handled merge commits and neith

Re: [PATCH v3 4/5] tools: Trivial formatting fixes

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 15:44 +1100, Daniel Axtens wrote: > Hi Stephen, > > While you're on a cleaning fix, may I suggest shellcheck.net? No > pressure :) Again, merged as is just to fix the bug, but shellcheck looks good an I'll submit a patch shortly to finish the cleanup here. Good call on the t

Re: [PATCH v3 3/5] hasher: Create hasher module

2016-12-02 Thread Stephen Finucane
On Fri, 2016-12-02 at 15:49 +1100, Daniel Axtens wrote: > Hi Stephen, > > AFAICT this is mostly a code move, Correct. > not changing the functionality of the > hasher. On that basis, and seeing how you're using it later on in the > series: > > Reviewed-by: Daniel Axtens Cheers. Applied. Ste