[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing state of PR's

From: Chad Walstrom
Subject: Re: Changing state of PR's
Date: Tue, 26 Sep 2006 16:16:32 -0500

> In our gnats there are many PRs at “fixed” state for quite some
> time. I want to mark all of them as “closed” at certain
> categories. Is there an easy way to do that?

Yes.  You can do this with a shell script using query-pr and pr-edit.
You can specify the query format to only output PR ID's based on the
criteria you set.  i.e. "fixed" and in the category "foo".  Then
iterate over each one with PR edit.

export GNATSDB

# collect problem reports
/usr/bin/query-pr --format='"%d" Number' \
        --expr='Category=="foo" & State[type] == "fixed"' | \
(while read PR ; do
    echo "closed" | \
        /usr/lib/gnats/pr-edit --replace=State \
Closed in a bulk operation for  Release X.Y.Z.
See ChangeLog for details.
" $PR

Chad Walstrom <address@hidden> 
           assert(expired(knowledge)); /* core dump */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]