# HG changeset patch # User Sean Farley # Date 2013-08-02 21:50:13 # 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 --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -43,7 +43,7 @@ class basectx(object): 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