# HG changeset patch # User Christian Ebert # Date 1190402213 -3600 # Node ID 2c222367dab358915a99b0d895cf3e8c85944983 # Parent fc091591de7ee15de74e7ae23471f2a9257e3b3e Use revlog.cmp to avoid checking for rename twice diff -r fc091591de7e -r 2c222367dab3 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