aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/diff.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-15 18:35:41 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-15 18:35:41 -0500
commit03011f286420d8e091052019ee41eba021041e61 (patch)
treefcf389e28c1142d61015bf37134925d4b209ba25 /libbe/diff.py
parent137f084f2931a0e2e1fa3076beadac17b88ef6b6 (diff)
downloadbugseverywhere-03011f286420d8e091052019ee41eba021041e61.tar.gz
Moved libbe.cmdutil.bug_summary() to libbe.bug.Bug.string().
This seems like a natual place for a function that only operates on Bugs.
Diffstat (limited to 'libbe/diff.py')
-rw-r--r--libbe/diff.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/diff.py b/libbe/diff.py
index 97eca54..fb3cfea 100644
--- a/libbe/diff.py
+++ b/libbe/diff.py
@@ -54,7 +54,7 @@ def diff_report(diff_data, bug_dir):
if len(added) > 0:
print "New bug reports:"
for bug in added:
- print cmdutil.bug_summary(bug, bugs, no_target=True)
+ print bug.string(shortlist=True)
if len(modified) > 0:
printed = False
@@ -70,7 +70,7 @@ def diff_report(diff_data, bug_dir):
if len(removed) > 0:
print "Removed bug reports:"
for bug in removed:
- print cmdutil.bug_summary(bug, bugs, no_target=True)
+ print bug.string(bug, bugs, shortlist=True)
def change_lines(old, new, attributes):
change_list = []
@@ -102,7 +102,7 @@ def bug_changes(old, new, bugs):
if len(change_strings) == 0:
return None
- return "%s%s\n" % (cmdutil.bug_summary(new, bugs, shortlist=True),
+ return "%s%s\n" % (new.string(bugs, shortlist=True),
"\n".join(change_strings))