From: Eric Blake <eblake@redhat.com>
To: Thomas Huth <thuth@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
stefanha@redhat.com, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3] scripts: Add a script to check for bug URLs in the git log
Date: Wed, 21 Sep 2016 15:00:21 -0500 [thread overview]
Message-ID: <e505b3c8-d2a9-fa4a-adbd-6b4f4bf3944e@redhat.com> (raw)
In-Reply-To: <1474486942-18754-1-git-send-email-thuth@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1678 bytes --]
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".
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> v3: Adressed Eric's review comments from v2 (fixed bashisms, more
> POSIX compliance, use lower-case variable names, etc.)
>
> +
> +if [ "x$start" = "x" ]; then
> + start=`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 2 | head -n 1`
> +fi
> +if [ "x$end" = "x" ]; then
> + end=`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 1`
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.
> +fi
> +
> +if [ "x$start" = "x" ] || [ "x$end" = "x" ]; then
> + echo "Could not determine start or end revision ... Please note that this"
> + echo "script must be run from a checked out git repository of QEMU!"
I'd drop the ending !; we don't need to shout at the user.
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 <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-09-21 20:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 19:42 [Qemu-devel] [PATCH v3] scripts: Add a script to check for bug URLs in the git log Thomas Huth
2016-09-21 20:00 ` Eric Blake [this message]
2016-09-22 7:00 ` Thomas Huth
2016-09-21 20:08 ` Paolo Bonzini
2016-09-22 7:02 ` Thomas Huth
2016-09-22 8:53 ` Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e505b3c8-d2a9-fa4a-adbd-6b4f4bf3944e@redhat.com \
--to=eblake@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).