Rev 5924: (vila) Add an option to check-newsbug to get a quicker access to bugs that in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Fri May 27 09:01:32 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5924 [merge]
revision-id: pqm at pqm.ubuntu.com-20110527090129-l9la6zh0v1jp4238
parent: pqm at pqm.ubuntu.com-20110527002226-47nfzevxy52b4pn1
parent: v.ladeuil+lp at free.fr-20110526204213-vvwv0hshlwsnzv49
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2011-05-27 09:01:29 +0000
message:
  (vila) Add an option to check-newsbug to get a quicker access to bugs that
   needs to be closed (Vincent Ladeuil)
modified:
  doc/developers/releasing.txt   releasing.txt-20080502015919-fnrcav8fwy8ccibu-1
  doc/en/release-notes/bzr-2.4.txt bzr2.4.txt-20110114053217-k7ym9jfz243fddjm-1
  tools/check-newsbugs.py        checknewsbugs.py-20090128204947-lsdwd8nlswm1yrwv-1
=== modified file 'doc/developers/releasing.txt'
--- a/doc/developers/releasing.txt	2011-03-28 15:17:09 +0000
+++ b/doc/developers/releasing.txt	2011-05-26 20:42:13 +0000
@@ -195,8 +195,10 @@
 
      ./tools/check-newsbugs.py doc/en/release-notes/bzr-x.y.txt
 
-   (As of 2011-03-10, only a few false positives remain. Don't let this slow
-   you down too much.)
+   As of 2011-05-26, only a few false positives remain in the older
+   series. Don't let this slow you down too much. This script accepts
+   options you may find useful, use ``./tools/check-newsbugs.py`` to display
+   its usage.
 
 #. Commit these changes to the release branch, using a command like::
 
@@ -318,7 +320,7 @@
 Publishing the source tarball
 -----------------------------
 
-#. Go to the relevant milestone page in Launchpad.
+#. Go to the relevant series page in Launchpad.
 
 #. Create a release of the milestone, and upload the source tarball and
    the GPG signature.  Or, if you prefer, use the

=== modified file 'doc/en/release-notes/bzr-2.4.txt'
--- a/doc/en/release-notes/bzr-2.4.txt	2011-05-26 20:24:20 +0000
+++ b/doc/en/release-notes/bzr-2.4.txt	2011-05-27 09:01:29 +0000
@@ -52,6 +52,9 @@
 .. Major internal changes, unlikely to be visible to users or plugin 
    developers, but interesting for bzr developers.
 
+* ``tools/check-newsbugs.py`` accepts a ``--browser`` option to open
+  corresponding launchpad pages in a browser. (Vincent Ladeuil)
+
 Testing
 *******
 

=== modified file 'tools/check-newsbugs.py'
--- a/tools/check-newsbugs.py	2010-12-02 15:48:12 +0000
+++ b/tools/check-newsbugs.py	2011-05-26 20:42:13 +0000
@@ -16,14 +16,17 @@
     sys.exit(1)
 
 
-options, args = getopt.gnu_getopt(sys.argv, "l", ["launchpad"])
+options, args = getopt.gnu_getopt(sys.argv, "lw", ["launchpad", 'webbrowser'])
 options = dict(options)
 
 if len(args) == 1:
-    print "Usage: check-newsbugs [--launchpad] NEWS"
+    print ("Usage: check-newsbugs [--launchpad][--webbrowser] "
+           "doc/en/release-notes/bzr-x.y.txt")
     print "Options:"
     print "--launchpad     Print out Launchpad mail commands for closing bugs "
     print "                that are already fixed."
+    print "--webbrowser    Open launchpad bug pages for bugs that are already "
+    print "                fixed."
     sys.exit(1)
 
 
@@ -37,6 +40,9 @@
         print "  bug %d" % bug.id
         print "  affects %s" % task.bug_target_name
         print "  status fixreleased"
+    if "--webbrowser" in options or "-w" in options:
+        import webbrowser
+        webbrowser.open('http://pad.lv/%s>' % (bug.id,))
 
 
 def read_news_bugnos(path):




More information about the bazaar-commits mailing list