aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <aaron.bentley@utoronto.ca>2005-03-18 01:22:07 +0000
committerAaron Bentley <aaron.bentley@utoronto.ca>2005-03-18 01:22:07 +0000
commite0f027bc4d96afda56dcbf2ce3998a5bc9d88ff9 (patch)
treed4c65ed56802248a7fefd1c460fe5e2e6361ba1a
parentca4d0a928e22fc1d264e031f0938397912474319 (diff)
downloadbugseverywhere-e0f027bc4d96afda56dcbf2ce3998a5bc9d88ff9.tar.gz
Made new print the bug ID of the new bug
-rw-r--r--becommands/new.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/becommands/new.py b/becommands/new.py
index eae9688..e36bc84 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -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)