changeset 19576:18bbd8a3abf3

basefilectx: move _filerev from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:44:36 -0500
parents 5a868137b830
children b52d572a2177
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:44:19 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:44:36 2013 -0500
@@ -439,6 +439,10 @@
         else:
             return self._changectx.filenode(self._path)
 
+    @propertycache
+    def _filerev(self):
+        return self._filelog.rev(self._filenode)
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -489,10 +493,6 @@
             return changectx(self._repo.unfiltered(), self._changeid)
 
     @propertycache
-    def _filerev(self):
-        return self._filelog.rev(self._filenode)
-
-    @propertycache
     def _repopath(self):
         return self._path