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

login
register
mail settings
Submitter phabricator
Date March 31, 2018, 10:18 a.m.
Message ID <af33d41b1619b053e8a0117cfcffcae6@localhost.localdomain>
Download mbox | patch
Permalink /patch/30054/
State Not Applicable
Headers show

Comments

phabricator - March 31, 2018, 10:18 a.m.
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




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

Patch

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