Hello Wolfgang,
Am 19.11.2013 08:12, schrieb Wolfgang Denk:
Dear Heiko,
In message<528ae93d.2080...@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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot