# HG changeset patch # User Martin von Zweigbergk # Date 1522475182 25200 # Node ID 97ab6f2dc3c3b0d689e90b4872b3874e649ce4e6 # Parent b00bd974eef54b898bc6df03eb07eab71a968062 context: drop support for changeid of type long (API?) I don't see a reason to support type long. It's pretty much the same type as int. There was some discussion about it on the mailing list around the time of ff2f90503d64 (context: work around `long` not existing on Python 3, 2017-03-11), but I couldn't find a good reason to keep it. There was some mention of hgtk doing "repo[long(rev)]", but that was in 2012. Differential Revision: https://phab.mercurial-scm.org/D2989 diff -r b00bd974eef5 -r 97ab6f2dc3c3 mercurial/context.py --- a/mercurial/context.py Sat Mar 31 00:02:31 2018 -0400 +++ b/mercurial/context.py Fri Mar 30 22:46:22 2018 -0700 @@ -419,8 +419,6 @@ self._node = repo.changelog.node(changeid) self._rev = changeid return - if not pycompat.ispy3 and isinstance(changeid, long): - changeid = "%d" % changeid if changeid == 'null': self._node = nullid self._rev = nullrev