~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/check-newsbugs.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-04 20:44:14 UTC
  • mfrom: (5807.2.2 inventory-tree-tests)
  • Revision ID: pqm@pqm.ubuntu.com-20110504204414-j893hspmx3k1rki4
(jelmer) Skip per_tree tests that are InventoryTree-specific if they're run
 against non-inventory trees. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    sys.exit(1)
17
17
 
18
18
 
19
 
options, args = getopt.gnu_getopt(sys.argv, "lw", ["launchpad", 'webbrowser'])
 
19
options, args = getopt.gnu_getopt(sys.argv, "l", ["launchpad"])
20
20
options = dict(options)
21
21
 
22
22
if len(args) == 1:
23
 
    print ("Usage: check-newsbugs [--launchpad][--webbrowser] "
24
 
           "doc/en/release-notes/bzr-x.y.txt")
 
23
    print "Usage: check-newsbugs [--launchpad] NEWS"
25
24
    print "Options:"
26
25
    print "--launchpad     Print out Launchpad mail commands for closing bugs "
27
26
    print "                that are already fixed."
28
 
    print "--webbrowser    Open launchpad bug pages for bugs that are already "
29
 
    print "                fixed."
30
27
    sys.exit(1)
31
28
 
32
29
 
40
37
        print "  bug %d" % bug.id
41
38
        print "  affects %s" % task.bug_target_name
42
39
        print "  status fixreleased"
43
 
    if "--webbrowser" in options or "-w" in options:
44
 
        import webbrowser
45
 
        webbrowser.open('http://pad.lv/%s>' % (bug.id,))
46
40
 
47
41
 
48
42
def read_news_bugnos(path):