[PATCH 1/2] adapt patchwork-update-commits to pwclient changes

Sascha Silbe sascha-pgp at silbe.org
Sat Feb 12 01:49:20 EST 2011


pwclient requires the action (update) and the project name.

Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>
---
 tools/patchwork-update-commits |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index 245a66a..ce4f301 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -2,15 +2,18 @@
 
 pwpath=apps/patchwork
 
-if [ "$#" -lt 1 ]
+if [ "$#" -lt 2 ]
 then
-	echo "usage: $0 <revspec>" >&2
+	echo "usage: $0 <project> <revspec>" >&2
 	exit 1
 fi
 
+project="$1"
+shift
+
 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"
+	$pwpath/bin/pwclient update -p "$project" -s Accepted -c "$commit" -h "$hash"
 done
-- 
1.7.2.3



More information about the Patchwork mailing list