mercurial/context.py
changeset 37504 901e749ca0e1
parent 37448 d7114f883505
child 37532 8475c9bf096d
equal deleted inserted replaced
37503:49a8c2cc7978 37504:901e749ca0e1
   448                 self._rev = repo.changelog.rev(self._node)
   448                 self._rev = repo.changelog.rev(self._node)
   449                 return
   449                 return
   450             except KeyError:
   450             except KeyError:
   451                 pass
   451                 pass
   452 
   452 
   453             self._node = repo.unfiltered().changelog._partialmatch(changeid)
   453             self._node = scmutil.resolvepartialhexnodeid(repo, changeid)
   454             if self._node is not None:
   454             if self._node is not None:
   455                 self._rev = repo.changelog.rev(self._node)
   455                 self._rev = repo.changelog.rev(self._node)
   456                 return
   456                 return
   457 
   457 
   458             # lookup failed
   458             # lookup failed