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