changeset 19602:018ee491a6be

basefilectx: move path from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:56:18 -0500
parents f284907631f5
children a92302f48a56
files mercurial/context.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:56:02 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:56:18 2013 -0500
@@ -514,6 +514,9 @@
     def changectx(self):
         return self._changectx
 
+    def path(self):
+        return self._path
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -571,8 +574,6 @@
 
     def data(self):
         return self._filelog.read(self._filenode)
-    def path(self):
-        return self._path
     def size(self):
         return self._filelog.size(self._filerev)