D2989: context: drop support for changeid of type long (API?)

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sat Mar 31 06:18:22 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG97ab6f2dc3c3: context: drop support for changeid of type long (API?) (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2989?vs=7454&id=7456

REVISION DETAIL
  https://phab.mercurial-scm.org/D2989

AFFECTED FILES
  mercurial/context.py

CHANGE DETAILS

diff --git a/mercurial/context.py b/mercurial/context.py
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -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



To: martinvonz, #hg-reviewers, yuja
Cc: mercurial-devel


More information about the Mercurial-devel mailing list