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

Signed-off-by: Sascha Silbe <[email protected]>
---
 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

_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to