~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/check-newsbugs.py

  • Committer: INADA Naoki
  • Date: 2011-05-14 14:32:02 UTC
  • mto: This revision was merged to the branch mainline in revision 5874.
  • Revision ID: songofacandy@gmail.com-20110514143202-47r07mp2ebipg2yq
Fix error when fix_sentence_endings=True.

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):