mercurial/context.py
changeset 37218 97ab6f2dc3c3
parent 37175 fbe34945220d
child 37267 de4849b67fe0
equal deleted inserted replaced
37217:b00bd974eef5 37218:97ab6f2dc3c3
   417         try:
   417         try:
   418             if isinstance(changeid, int):
   418             if isinstance(changeid, int):
   419                 self._node = repo.changelog.node(changeid)
   419                 self._node = repo.changelog.node(changeid)
   420                 self._rev = changeid
   420                 self._rev = changeid
   421                 return
   421                 return
   422             if not pycompat.ispy3 and isinstance(changeid, long):
       
   423                 changeid = "%d" % changeid
       
   424             if changeid == 'null':
   422             if changeid == 'null':
   425                 self._node = nullid
   423                 self._node = nullid
   426                 self._rev = nullrev
   424                 self._rev = nullrev
   427                 return
   425                 return
   428             if changeid == 'tip':
   426             if changeid == 'tip':