From patchwork Fri Feb 11 14:49:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Silbe X-Patchwork-Id: 82888 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 1E2C2B715A for ; Sat, 12 Feb 2011 13:05:25 +1100 (EST) Received: from smtp.chost.de (setoy.chost.de [217.160.209.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.chost.de", Issuer "CA Cert Signing Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 21077B716C for ; Sat, 12 Feb 2011 01:56:09 +1100 (EST) Received: (qmail 18255 invoked by uid 5015); 11 Feb 2011 14:49:30 -0000 Received: (nullmailer pid 32544 invoked by uid 123); Fri, 11 Feb 2011 14:49:23 -0000 Received: from twin.sascha.silbe.org (twin.sascha.silbe.org [192.168.1.2]) by flatty.sascha.silbe.org ([192.168.1.252]) with SMTP via TCP; 11 Feb 2011 14:49:23 -0000 Received: (nullmailer pid 5835 invoked by uid 8193); Fri, 11 Feb 2011 14:49:27 -0000 From: Sascha Silbe To: patchwork@lists.ozlabs.org Subject: [PATCH 1/2] adapt patchwork-update-commits to pwclient changes Date: Fri, 11 Feb 2011 15:49:20 +0100 Message-Id: <1297435761-5794-2-git-send-email-sascha-pgp@silbe.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297435761-5794-1-git-send-email-sascha-pgp@silbe.org> References: <1297435761-5794-1-git-send-email-sascha-pgp@silbe.org> X-Mailman-Approved-At: Sat, 12 Feb 2011 13:05:24 +1100 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Sascha Silbe List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org pwclient requires the action (update) and the project name. Signed-off-by: Sascha Silbe --- 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 " >&2 + echo "usage: $0 " >&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