~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: 2010-12-02 14:58:47 UTC
  • mfrom: (5554.1.3 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101202145847-fw822sd3nyhvrwmi
(vila) Merge 2.2 into trunk including fix for bug #583667 and bug
        #681885 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
try:
13
13
    import hydrazine
14
14
except ImportError:
15
 
    print "Please install hydrazine from lp:hydrazine"
 
15
    print "Please install hydrazine from lp:launchpadlib"
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):