From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 19 Nov 2013 19:08:24 +0100 Subject: [U-Boot] u-boot gerrit server In-Reply-To: <20131119071224.B8DC3380481@gemini.denx.de> References: <20131114211759.GE420@bill-the-cat> <20131115200820.GK420@bill-the-cat> <20131115213415.GM420@bill-the-cat> <20131115232142.7D6D7380C6E@gemini.denx.de> <20131117165120.8AFA2380460@gemini.denx.de> <20131117194112.GZ420@bill-the-cat> <20131118160051.GC420@bill-the-cat> <528AE93D.2080805@denx.de> <20131119071224.B8DC3380481@gemini.denx.de> Message-ID: <528BA918.1020709@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Wolfgang, Am 19.11.2013 08:12, schrieb Wolfgang Denk: > Dear Heiko, > > In message<528AE93D.2080805@denx.de> you wrote: >> >> - Maybe a cmdline interface to change the state of a patch, so I do not >> need to open a webbrowser (not necessary, would just nice ;-) > > This can be done using existing tools. "pwclient update" can be used > to update the status. Oh... I look into this. > A minor problem here is identifying the patch when you don't want to > use the web interface at all. If you have the original e-mail message > stored locally (I'm using exmh / nmh as MUA, so each message is a file > for me anyway), then you can use pwparser to compute the hash of the > message and use this as an index, like that: > > ----------- snip ----------- > #!/bin/bash > > [ $# -ge 1 ] || { echo "Usage: $0 patch ...">&2 ; exit 1 ; } > > for PATCH in $* > do > HASH=$(/home/wd/bin/pwparser.py --hash<$PATCH) > if [ -z "$HASH" ] > then > echo "ERROR: $PATCH - no such entry in PatchWork">&2 > continue > fi > > if pwclient git-am -h $HASH > then > pwclient update -s 'Accepted' -h $HASH > fi > done > ----------- snip ----------- Great, thanks! bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany