basectx: move rev from changectx
authorSean Farley <sean.michael.farley@gmail.com>
Fri, 02 Aug 2013 19:09:06 -0500
changeset 19541 421d49f2f8e2
parent 19540 7b864da00e21
child 19542 bd95621a2d56
basectx: move rev from changectx
mercurial/context.py
--- a/mercurial/context.py	Fri Aug 02 16:46:23 2013 -0500
+++ b/mercurial/context.py	Fri Aug 02 19:09:06 2013 -0500
@@ -38,6 +38,9 @@
     def __str__(self):
         return short(self.node())
 
+    def rev(self):
+        return self._rev
+
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
     changeset convenient. It represents a read-only context already presnt in
@@ -207,8 +210,6 @@
     def manifestnode(self):
         return self._changeset[0]
 
-    def rev(self):
-        return self._rev
     def node(self):
         return self._node
     def hex(self):