filelog.cmp: return 0 for equality
authorMatt Mackall <mpm@selenic.com>
Tue, 15 Aug 2006 16:28:00 -0500
changeset 2915 21631c2c09a5
parent 2914 f28f4c850cd8
child 2916 834e147842d7
filelog.cmp: return 0 for equality spotted by Alexis Carvalho
mercurial/filelog.py
--- a/mercurial/filelog.py
+++ b/mercurial/filelog.py
@@ -71,7 +71,7 @@ class filelog(revlog):
         # for renames, we have to go the slow way
         if self.renamed(node):
             t2 = self.read(node)
-            return t2 == text
+            return t2 != text
 
         return revlog.cmp(self, node, text)