From: Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) Date: Fri, 2 Mar 2012 12:28:34 +0000 (-0500) Subject: Print full UUIDs during `new` and `comment`. X-Git-Tag: 1.1.0~152 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99f328d8937a173ca4e4f2bb7c46561c675d2d24;p=be.git Print full UUIDs during `new` and `comment`. --- diff --git a/libbe/command/comment.py b/libbe/command/comment.py index 9695ff6..74521d1 100644 --- a/libbe/command/comment.py +++ b/libbe/command/comment.py @@ -159,7 +159,7 @@ class Comment (libbe.command.Command): for key in ['alt-id', 'author']: if params[key] != None: setattr(new, new._setting_name_to_attr_name(key), params[key]) - print >> self.stdout, 'Created comment with ID %s' % new.id.user() + print >> self.stdout, 'Created comment with ID %s (%s)' % (new.id.user(), new.id.long_user()) return 0 def _long_help(self): diff --git a/libbe/command/new.py b/libbe/command/new.py index e34d05c..a847132 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -124,7 +124,7 @@ class New (libbe.command.Command): bug.severity = params['severity'] bugdir.storage.writeable = True bug.save() - print >> self.stdout, 'Created bug with ID %s' % bug.id.user() + print >> self.stdout, 'Created bug with ID %s (%s)' % (bug.id.user(), bug.id.long_user()) return 0 def _long_help(self):