# HG changeset patch # User Christian Ebert # Date 1184309019 -7200 # Node ID c5f655d5d8b451ee9fc9d8b3d5bf68dc87686a90 # Parent 5329863fb64eb3e7f8d6f6256b7e590deaf6f70a Handle rename and copy properly Touching a renamed or copied file made it seem modified. diff -r 5329863fb64e -r c5f655d5d8b4 hgkw/keyword.py --- a/hgkw/keyword.py Fri Jun 29 16:21:48 2007 +0200 +++ b/hgkw/keyword.py Fri Jul 13 08:43:39 2007 +0200 @@ -204,6 +204,9 @@ def cmp(self, node, text): '''Removes keyword substitutions for comparison.''' text = self.kwtemplater.shrink(text) + if self.renamed(node): + t2 = super(kwfilelog, self).read(node) + return t2 != text return super(kwfilelog, self).cmp(node, text)