diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2010-08-10 11:33:35 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2010-08-10 11:49:36 +0800 |
commit | 1dbc5bbbf795b6ae572e3aba8f4e2ce9ba4e94a1 (patch) | |
tree | 6512a7ffc3a940887666b634cd0ce7e9bb3ee3a5 /tools | |
parent | a4c18dfd4492e61c4025c378a68a0d3511308b89 (diff) | |
download | patchwork-1dbc5bbbf795b6ae572e3aba8f4e2ce9ba4e94a1.tar patchwork-1dbc5bbbf795b6ae572e3aba8f4e2ce9ba4e94a1.tar.gz |
tools: add simple patchwork-update-commits script
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/patchwork-update-commits | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits new file mode 100755 index 0000000..245a66a --- /dev/null +++ b/tools/patchwork-update-commits @@ -0,0 +1,16 @@ +#!/bin/bash + +pwpath=apps/patchwork + +if [ "$#" -lt 1 ] +then + echo "usage: $0 <revspec>" >&2 + exit 1 +fi + +git rev-list --reverse "$@" | +while read commit +do + hash=$(git show "$commit" | python $pwpath/parser.py -#) + $pwpath/bin/pwclient -s Accepted -c "$commit" -h "$hash" +done |