projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05892f3
)
Remove blank line from tag's output if no tags exist
author
W. Trevor King
<wking@drexel.edu>
Thu, 25 Jun 2009 17:30:23 +0000
(13:30 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 25 Jun 2009 17:30:23 +0000
(13:30 -0400)
becommands/tag.py
patch
|
blob
|
history
diff --git
a/becommands/tag.py
b/becommands/tag.py
index 23942840fa9d0339cda3be3507813837d317a806..5a18a7c4478af001c83614b72c63779559d441df 100644
(file)
--- a/
becommands/tag.py
+++ b/
becommands/tag.py
@@
-89,7
+89,8
@@
def execute(args, test=False):
if tag not in tags:
tags.append(tag)
tags.sort()
- print '\n'.join(tags)
+ if len(tags) > 0:
+ print '\n'.join(tags)
return
bug = bd.bug_from_shortname(args[0])
if len(args) == 2: