keyword: replace use of _filerev with _filenode
authorChristian Ebert <blacktrash@gmx.net>
Tue, 19 Apr 2016 11:00:15 +0100
changeset 29055 4a65c9c6cd3f
parent 29054 acc4c6070f31
child 29056 e2178f7d17c0
keyword: replace use of _filerev with _filenode To be independent of rev numbers. Analogous to ba8257cb53e8.
hgext/keyword.py
--- a/hgext/keyword.py	Tue May 03 10:41:17 2016 -0500
+++ b/hgext/keyword.py	Tue Apr 19 11:00:15 2016 +0100
@@ -735,7 +735,7 @@
     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