aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-04-22 17:31:58 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-04-22 17:31:58 +0000
commit29c24ffb276bfdcc625e680118c8e9f449b868e8 (patch)
treeec3056bd40081e350c4b4b04ca5d7a6bfcf58625
parent43951f500ed2ce6dae61f34cc499d13535f47c50 (diff)
parent1d1d267da9b6c65937ac5aff529d6f98a692bbd5 (diff)
downloadbugseverywhere-29c24ffb276bfdcc625e680118c8e9f449b868e8.tar.gz
Merge (Oleg Romanyshyn)
Patches applied: * oromanyshyn@panoramicfeedback.com--development2/bugs-everywhere--0--patch-2 * Changed help message for inprogress * oromanyshyn@panoramicfeedback.com--development2/bugs-everywhere--0--patch-3 * Changed layout of the displaying bugs (list and show commands)
-rw-r--r--becommands/inprogress.py2
-rw-r--r--becommands/list.py2
-rw-r--r--libbe/cmdutil.py7
3 files changed, 7 insertions, 4 deletions
diff --git a/becommands/inprogress.py b/becommands/inprogress.py
index 968551e..f1bc32c 100644
--- a/becommands/inprogress.py
+++ b/becommands/inprogress.py
@@ -1,4 +1,4 @@
-"""Close a bug"""
+"""Bug fixing in progress"""
from libbe import cmdutil
def execute(args):
"""
diff --git a/becommands/list.py b/becommands/list.py
index f602ba3..7c0f8de 100644
--- a/becommands/list.py
+++ b/becommands/list.py
@@ -66,7 +66,7 @@ def execute(args):
if len(cur_bugs) > 0:
print cmdutil.underlined(title)
for bug in cur_bugs:
- print cmdutil.bug_summary(bug, all_bugs, no_target=no_target)
+ print cmdutil.bug_summary(bug, all_bugs, no_target=no_target, shortlist=True)
list_bugs(my_target_bugs,
"Bugs assigned to you for target %s" % tree.target,
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 31a542d..b6a2487 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -44,7 +44,7 @@ def get_bug(spec, bug_dir=None):
raise UserError("No bug matches %s" % spec)
return matches[0]
-def bug_summary(bug, bugs, no_target=False):
+def bug_summary(bug, bugs, no_target=False, shortlist=False):
target = bug.target
if target is None or no_target:
target = ""
@@ -54,9 +54,12 @@ def bug_summary(bug, bugs, no_target=False):
assigned = ""
else:
assigned = " Assigned: %s" % bug.assigned
- return "ID: %s Severity: %s%s%s Creator: %s \n%s\n" % \
+ if shortlist == False:
+ return " ID: %s\n Severity: %s\n%s%s\n Creator: %s \n%s\n" % \
(unique_name(bug, bugs), bug.severity, assigned, target,
bug.creator, bug.summary)
+ else:
+ return "%4s: %s\n" % (unique_name(bug, bugs), bug.summary)
def iter_commands():
for name, module in plugin.iter_plugins("becommands"):