changeset 19573:dffad92ab709

basefilectx: move _filelog from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:40:59 -0500
parents c19f46b904b9
children a01436798988
files mercurial/context.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sat Aug 10 15:10:26 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:40:59 2013 -0500
@@ -419,6 +419,10 @@
     def __new__(cls, repo, path, *args, **kwargs):
         return super(basefilectx, cls).__new__(cls)
 
+    @propertycache
+    def _filelog(self):
+        return self._repo.file(self._path)
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -469,10 +473,6 @@
             return changectx(self._repo.unfiltered(), self._changeid)
 
     @propertycache
-    def _filelog(self):
-        return self._repo.file(self._path)
-
-    @propertycache
     def _changeid(self):
         if '_changeid' in self.__dict__:
             return self._changeid