changeset 19588:a192fff6c97d

basefilectx: move rev from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:51:30 -0500
parents b1c344ebd8e4
children 6a9043fa06d0
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:51:18 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:51:30 2013 -0500
@@ -485,6 +485,8 @@
         return self._changectx.flags(self._path)
     def filelog(self):
         return self._filelog
+    def rev(self):
+        return self._changeid
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
@@ -541,8 +543,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def rev(self):
-        return self._changeid
     def linkrev(self):
         return self._filelog.linkrev(self._filerev)
     def node(self):