##// END OF EJS Templates
context: work around `long` not existing on Python 3...
Augie Fackler -
r31343:ff2f9050 default
parent child Browse files
Show More
@@ -33,6 +33,7 from . import (
33 obsolete as obsmod,
33 obsolete as obsmod,
34 patch,
34 patch,
35 phases,
35 phases,
36 pycompat,
36 repoview,
37 repoview,
37 revlog,
38 revlog,
38 scmutil,
39 scmutil,
@@ -419,7 +420,7 class changectx(basectx):
419 self._node = repo.changelog.node(changeid)
420 self._node = repo.changelog.node(changeid)
420 self._rev = changeid
421 self._rev = changeid
421 return
422 return
422 if isinstance(changeid, long):
423 if not pycompat.ispy3 and isinstance(changeid, long):
423 changeid = str(changeid)
424 changeid = str(changeid)
424 if changeid == 'null':
425 if changeid == 'null':
425 self._node = nullid
426 self._node = nullid
General Comments 0
You need to be logged in to leave comments. Login now