projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99caee
)
Add "be target list", to show a list of existing targets.
author
Chris Ball
<cjb@laptop.org>
Wed, 24 Jun 2009 21:25:02 +0000
(17:25 -0400)
committer
Chris Ball
<cjb@laptop.org>
Wed, 24 Jun 2009 21:25:02 +0000
(17:25 -0400)
becommands/target.py
patch
|
blob
|
history
diff --git
a/becommands/target.py
b/becommands/target.py
index c83ffa7678ace1384b13599738162a7ae9083bbd..e7ebccabb0002dc91e683b618913afe6a1b5261e 100644
(file)
--- a/
becommands/target.py
+++ b/
becommands/target.py
@@
-39,6
+39,12
@@
def execute(args, test=False):
if len(args) not in (1, 2):
raise cmdutil.UsageError
bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
+ if len(args) == 1 and args[0] == "list":
+ ts = set([bd.bug_from_uuid(bug).target for bug in bd.list_uuids()])
+ for target in sorted(ts):
+ if target:
+ print target
+ return
bug = bd.bug_from_shortname(args[0])
if len(args) == 1:
if bug.target is None or bug.target is settings_object.EMPTY: