changeset 19584:fe300e63c28c

basefilectx: move filerev from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:50:15 -0500
parents e5074d82afc9
children 8e553cd6071e
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:49:40 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:50:15 2013 -0500
@@ -477,6 +477,9 @@
     def __ne__(self, other):
         return not (self == other)
 
+    def filerev(self):
+        return self._filerev
+
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
        filerevision convenient."""
@@ -532,8 +535,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def filerev(self):
-        return self._filerev
     def filenode(self):
         return self._filenode
     def flags(self):