Commit 1dbc5bbb authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

tools: add simple patchwork-update-commits script


Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent a4c18dfd
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment