From: W. Trevor King Date: Sat, 5 Dec 2009 04:30:32 +0000 (-0500) Subject: Fixed removed comment listing in libbe/diff.py. X-Git-Tag: 1.0.0~59^2~68^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d0bc3a0c2497be662a1742459622d2c37cce415;p=be.git Fixed removed comment listing in libbe/diff.py. Previous implementation guaranteed to raise KeyErrors, because new bug doesn't contain the uuid. --- 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):