basectx: move node from changectx
authorSean Farley <sean.michael.farley@gmail.com>
Fri, 02 Aug 2013 16:48:19 -0500
changeset 19542 bd95621a2d56
parent 19541 421d49f2f8e2
child 19543 18f4951222f4
basectx: move node from changectx
mercurial/context.py
--- a/mercurial/context.py	Fri Aug 02 19:09:06 2013 -0500
+++ b/mercurial/context.py	Fri Aug 02 16:48:19 2013 -0500
@@ -40,6 +40,8 @@
 
     def rev(self):
         return self._rev
+    def node(self):
+        return self._node
 
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
@@ -210,8 +212,6 @@
     def manifestnode(self):
         return self._changeset[0]
 
-    def node(self):
-        return self._node
     def hex(self):
         return hex(self._node)
     def user(self):