# HG changeset patch # User Sean Farley # Date 1375480213 18000 # Node ID 74924fa3236df52d0846283b01b0ffe453a6707a # Parent 18f4951222f4fc80507ce60deb329ded733b56a1 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(). diff -r 18f4951222f4 -r 74924fa3236d 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