From: W. Trevor King Date: Wed, 10 Jul 2013 14:07:37 +0000 (-0400) Subject: command:target: Print full ID (bugdir/bug) on --resolve X-Git-Url: http://git.tremily.us/?p=be.git;a=commitdiff_plain;h=9b5b2a1b7ca4541b4b34aa4b4f00c2d96a90d79b command:target: Print full ID (bugdir/bug) on --resolve The old implementation just printed the bug UUID (without the bugdir/ prefix). This lead to the command we suggest in `be target --help`: $ be depend --status -closed,fixed,wontfix --severity -target \ $(be target --resolve) failing with an invalid ID. Reported-by: Michael Sperber --- diff --git a/libbe/command/target.py b/libbe/command/target.py index 6cf9cc6..20ffb57 100644 --- a/libbe/command/target.py +++ b/libbe/command/target.py @@ -109,7 +109,7 @@ class Target (libbe.command.Command): if bug == None: print >> self.stdout, 'No target assigned.' else: - print >> self.stdout, bug.uuid + print >> self.stdout, bug.id.long_user() return 0 bugdir,bug,comment = ( libbe.command.util.bugdir_bug_comment_from_user_id(