basefilectx: move linkrev from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:51:41 -0500
changeset 19589 6a9043fa06d0
parent 19588 a192fff6c97d
child 19590 90994b176bc1
basefilectx: move linkrev from filectx
mercurial/context.py
--- a/mercurial/context.py	Sun Aug 11 22:51:30 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:51:41 2013 -0500
@@ -487,6 +487,8 @@
         return self._filelog
     def rev(self):
         return self._changeid
+    def linkrev(self):
+        return self._filelog.linkrev(self._filerev)
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
@@ -543,8 +545,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def linkrev(self):
-        return self._filelog.linkrev(self._filerev)
     def node(self):
         return self._changectx.node()
     def hex(self):