changeset 19575:5a868137b830

basefilectx: move _filenode from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:44:19 -0500
parents a01436798988
children 18bbd8a3abf3
files mercurial/context.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:44:06 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:44:19 2013 -0500
@@ -432,6 +432,13 @@
         else:
             return self._filelog.linkrev(self._filerev)
 
+    @propertycache
+    def _filenode(self):
+        if '_fileid' in self.__dict__:
+            return self._filelog.lookup(self._fileid)
+        else:
+            return self._changectx.filenode(self._path)
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -482,13 +489,6 @@
             return changectx(self._repo.unfiltered(), self._changeid)
 
     @propertycache
-    def _filenode(self):
-        if '_fileid' in self.__dict__:
-            return self._filelog.lookup(self._fileid)
-        else:
-            return self._changectx.filenode(self._path)
-
-    @propertycache
     def _filerev(self):
         return self._filelog.rev(self._filenode)