Use revlog.cmp to avoid checking for rename twice
authorChristian Ebert <blacktrash@gmx.net>
Fri, 21 Sep 2007 20:16:53 +0100
changeset 248 2c222367dab3
parent 247 fc091591de7e
child 249 8df281c5ca8b
Use revlog.cmp to avoid checking for rename twice
hgkw/keyword.py
--- a/hgkw/keyword.py	Thu Sep 20 21:14:40 2007 +0100
+++ b/hgkw/keyword.py	Fri Sep 21 20:16:53 2007 +0100
@@ -81,7 +81,7 @@
 '''
 
 from mercurial import commands, cmdutil, context, fancyopts, filelog
-from mercurial import localrepo, templater, util, hg
+from mercurial import localrepo, revlog, templater, util, hg
 from mercurial.i18n import gettext as _
 import getopt, re, shutil, sys, tempfile, time
 
@@ -293,7 +293,7 @@
         if self.renamed(node):
             t2 = super(kwfilelog, self).read(node)
             return t2 != text
-        return super(kwfilelog, self).cmp(node, text)
+        return revlog.revlog.cmp(self, node, text)
 
 def _keywordmatcher(ui, repo):
     '''Collects include/exclude filename patterns for expansion