projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb0182
)
Fixed removed comment listing in libbe/diff.py.
author
W. Trevor King
<wking@drexel.edu>
Sat, 5 Dec 2009 04:30:32 +0000
(23:30 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 5 Dec 2009 04:30:32 +0000
(23:30 -0500)
Previous implementation guaranteed to raise KeyErrors, because new bug
doesn't contain the uuid.
libbe/diff.py
patch
|
blob
|
history
diff --git
a/libbe/diff.py
b/libbe/diff.py
index 4c225977ab84ec97186a5b6f435eae45d1f20a28..c25f7a77fe8e78c0239972903adf12d8eb35ee17 100644
(file)
--- a/
libbe/diff.py
+++ b/
libbe/diff.py
@@
-263,8
+263,8
@@
class Diff (object):
modified.append((old_comment, new_comment))
for uuid in old_comment_ids:
if uuid not in new_comment_ids:
-
new_comment = new
.comment_from_uuid(uuid)
- removed.append(
new
_comment)
+
old_comment = old
.comment_from_uuid(uuid)
+ removed.append(
old
_comment)
self.__changed_comments[new.uuid] = (added, modified, removed)
return self.__changed_comments[new.uuid]
def _attribute_changes(self, old, new, attributes):