summaryrefslogtreecommitdiffstats
path: root/tools/patchwork-update-commits
blob: 245a66a06844df0dc763879e1bc876de8a1179f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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