basefilectx: move _repopath from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:44:51 -0500
changeset 19577 b52d572a2177
parent 19576 18bbd8a3abf3
child 19578 2c149635c2c5
basefilectx: move _repopath from filectx
mercurial/context.py
--- a/mercurial/context.py	Sun Aug 11 22:44:36 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:44:51 2013 -0500
@@ -443,6 +443,10 @@
     def _filerev(self):
         return self._filelog.rev(self._filenode)
 
+    @propertycache
+    def _repopath(self):
+        return self._path
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -492,10 +496,6 @@
             # considered when solving linkrev issue are on the table.
             return changectx(self._repo.unfiltered(), self._changeid)
 
-    @propertycache
-    def _repopath(self):
-        return self._path
-
     def __nonzero__(self):
         try:
             self._filenode