basectx: change _node to node() in hex
authorSean Farley <sean.michael.farley@gmail.com>
Fri, 02 Aug 2013 16:50:13 -0500
changeset 19544 74924fa3236d
parent 19543 18f4951222f4
child 19545 5af7045b0b18
basectx: change _node to node() in hex This allows a child class to overload the node() function and still share the same code for hex().
mercurial/context.py
--- a/mercurial/context.py	Fri Aug 02 16:49:01 2013 -0500
+++ b/mercurial/context.py	Fri Aug 02 16:50:13 2013 -0500
@@ -43,7 +43,7 @@
     def node(self):
         return self._node
     def hex(self):
-        return hex(self._node)
+        return hex(self.node())
 
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular