[PATCH] keyword: replace use of _filerev with _filenode

Christian Ebert blacktrash at gmx.net
Thu Apr 21 11:33:42 UTC 2016


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1461060015 -3600
#      Tue Apr 19 11:00:15 2016 +0100
# Node ID e2e0e3d3ba00ed301a0ec41d79e3606609818112
# Parent  9fb2e8c8f3204a610eab3576d6aaf2fa7b8bc450
keyword: replace use of _filerev with _filenode

To be independent of rev numbers.
Analogous to ba8257cb53e8.

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -735,7 +735,7 @@ def reposetup(ui, repo):
     def kwfilectx_cmp(orig, self, fctx):
         # keyword affects data size, comparing wdir and filelog size does
         # not make sense
-        if (fctx._filerev is None and
+        if (fctx._filenode is None and
             (self._repo._encodefilterpats or
              kwt.match(fctx.path()) and 'l' not in fctx.flags() or
              self.size() - 4 == fctx.size()) or


More information about the Mercurial-devel mailing list