Made new print the bug ID of the new bug
authorAaron Bentley <aaron.bentley@utoronto.ca>
Fri, 18 Mar 2005 01:22:07 +0000 (01:22 +0000)
committerAaron Bentley <aaron.bentley@utoronto.ca>
Fri, 18 Mar 2005 01:22:07 +0000 (01:22 +0000)
becommands/new.py

index eae9688ae957652a68df5153eef0f1d9571b4b48..e36bc84b2b9c21c07aaf85bc123ef210f90712fe 100644 (file)
@@ -4,11 +4,12 @@ def execute(args):
     if len(args) != 1:
         raise cmdutil.UserError("Please supply a summary message")
     dir = bugdir.tree_root(".")
-    bugs = (dir.list())
     bug = dir.new_bug()
     bug.creator = names.creator()
     bug.severity = "minor"
     bug.status = "open"
     bug.summary = args[0]
     bug.save()
+    bugs = (dir.list())
+    print "Created bug with ID %s" % cmdutil.unique_name(bug, bugs)