[PATCH 1 of 3] committablectx: override __int__ to return integer next to tip

Matt Mackall mpm at selenic.com
Fri Apr 10 15:08:40 CDT 2015


On Fri, 2015-04-10 at 23:54 +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1428154731 -32400
> #      Sat Apr 04 22:38:51 2015 +0900
> # Node ID 7b7efec2eafba7dde274316eb3c18a98ec6528b1
> # Parent  e0e28e910fa3797fd0aa4f818e9b33c5bcbf0e53
> committablectx: override __int__ to return integer next to tip

Postscript: I see that normal contexts already have __int__.. which may
be a mistake. Do we use it anywhere?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list