projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f72535d
)
Slight refactoring
author
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 9 May 2005 21:56:10 +0000
(21:56 +0000)
committer
Aaron Bentley
<abentley@panoramicfeedback.com>
Mon, 9 May 2005 21:56:10 +0000
(21:56 +0000)
libbe/diff.py
patch
|
blob
|
history
diff --git
a/libbe/diff.py
b/libbe/diff.py
index 70bda69a11e05dec48cc4bbd5a0cd183200180e2..a0e43a2da1dfdf4d3043c332ad435650976cb78b 100644
(file)
--- a/
libbe/diff.py
+++ b/
libbe/diff.py
@@
-60,7
+60,7
@@
def change_lines(old, new, attributes):
old_attr = getattr(old, attr)
new_attr = getattr(new, attr)
if old_attr != new_attr:
- change_list.append(
"%s: %s -> %s" %
(attr, old_attr, new_attr))
+ change_list.append((attr, old_attr, new_attr))
if len(change_list) >= 0:
return change_list
else:
@@
-72,6
+72,6
@@
def bug_changes(old, new, bugs):
if len(change_list) == 0:
return None
return "%s%s\n" % (cmdutil.bug_summary(new, bugs, shortlist=True),
-
"\n".join(change_list
))
+
"\n".join(["%s: %s -> %s" % f for f in change_list]
))