aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-04 23:30:32 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-04 23:30:32 -0500
commit2d0bc3a0c2497be662a1742459622d2c37cce415 (patch)
treefc81c8367afc399f44a937dfb626f78de0d68a46 /libbe
parent4cb0182da105d18f067c1a10482c89c966b02827 (diff)
downloadbugseverywhere-2d0bc3a0c2497be662a1742459622d2c37cce415.tar.gz
Fixed removed comment listing in libbe/diff.py.
Previous implementation guaranteed to raise KeyErrors, because new bug doesn't contain the uuid.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/diff.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/diff.py b/libbe/diff.py
index 4c22597..c25f7a7 100644
--- 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):