hgkw/keyword.py
branchkwmap-templates
changeset 174 c5f655d5d8b4
parent 173 5329863fb64e
child 175 f8e5cafa7b99
--- 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)