Received: from eggs.gnu.org ([2001:4830:134:3::10]:57135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmxzY-0004iJ-4l for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:00:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmxzS-0005y9-AR for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:00:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmxzS-0005xx-0Y for qemu-devel@nongnu.org; Thu, 22 Sep 2016 03:00:14 -0400 Date: Thu, 22 Sep 2016 09:00:01 +0200 From: Thomas Huth Message-ID: <20160922090001.34618e65@thh440s> In-Reply-To: References: <1474486942-18754-1-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/5mRe1N+/AtDadiVlXUDQx2i"; protocol="application/pgp-signature" Subject: Re: [Qemu-devel] [PATCH v3] scripts: Add a script to check for bug URLs in the git log List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Peter Maydell , stefanha@redhat.com, Paolo Bonzini --Sig_/5mRe1N+/AtDadiVlXUDQx2i Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 21 Sep 2016 15:00:21 -0500 Eric Blake wrote: > On 09/21/2016 02:42 PM, Thomas Huth wrote: > > Basic idea of this script is to check the git log for URLs > > to the QEMU bugtracker at launchpad.net and to figure out > > whether the related bug has been marked there as "Fix released" > > (i.e. closed) already. So this script can e.g. be used after > > each public release of QEMU to check whether there are any > > bug tickets that could be moved from "Fix committed" (or another > > state if the author of the patch forgot to update the bug ticket) > > to "Fix released". > >=20 > > Signed-off-by: Thomas Huth > > --- > > v3: Adressed Eric's review comments from v2 (fixed bashisms, more > > POSIX compliance, use lower-case variable names, etc.) > >=20 >=20 > > + > > +if [ "x$start" =3D "x" ]; then > > + start=3D`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 2 | head -n 1` > > +fi > > +if [ "x$end" =3D "x" ]; then > > + end=3D`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 1` >=20 > This would match v1.100 (not that we are likely to have that tag); both > lines are missing a \ before the second '.' if you are trying to > constrain it to just vX.Y.Z forms. Oh, you're right, of course - the idea was to constrain the output to the official .0 releases. > > +fi > > + > > +if [ "x$start" =3D "x" ] || [ "x$end" =3D "x" ]; then > > + echo "Could not determine start or end revision ... Please note th= at this" > > + echo "script must be run from a checked out git repository of QEMU= !" >=20 > I'd drop the ending !; we don't need to shout at the user. >=20 > At any rate, you have indeed addressed the portability issues I pointed > out, so with the missing \ fixed, I'm okay with adding: > Reviewed-by: Eric Blake Thanks! Thomas --Sig_/5mRe1N+/AtDadiVlXUDQx2i Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJX44F2AAoJEC7Z13T+cC21dZIQAKGRzXZObVgNzq0oxuvwlLpI jGIdP/tSCmH8gVSbEQQVkHvX0yIhW+/5AKrPdew5w6+htEvOEtNjDDbpZfgBbXQF DFtb/lKgXrfi68Le34gKxbzBkX77FIo6ex/5DCp4iYuKYcu+rh+NilxxPTy8RB2C 1+Xr/Og35+VB3grEE/4Czk7n575yuISQh4y+UHUckeEjYgqNwOaAVhQVrR5LPT4G LOeDUFn0nQCxb5Xig36vmJGL9Zj8IisYS1NwsNcwv0Tktix5aeSC+A5oeN+soee/ N67S+Witi0k/5CYVOU8REsZ+7Wo012YOvevQnt8hUrccgzZvD4nxwRVScAcGq3Q9 ONU2NFHbyEZcSGEJKetRT302t52pm7DrCdbrRzu83I7+xJk84436env2k/GrAdth ZZkrQUojsVPrMwiHFOlCv+8ZtMCmLDuY7LUcMuqbFDAGiQFfei4Dzbj/rvmOcuCs a317UU3X9JjPpacMpDEtKe6QKAqacuqsthUzLidDqwBGwqywz0LxiWBrnmbsfNHW ljQUR72cVketybcwenHUYboaCwOp2OCTqrdbHoBOIMYGvpW3poRWmFjbpgx1d0dQ FkurEii6pMUw4c0keUDDWYGGyv6nAveodgHoSodImFsoSoCjx59lHIdGJCy+mAZk OX4vNgfUZ7JwtrGvcJGw =RLwe -----END PGP SIGNATURE----- --Sig_/5mRe1N+/AtDadiVlXUDQx2i--