Mercurial > hg-stable
changeset 37679:ab828755e1ea
scmutil: use resolvehexnodeidprefix() from revsymbol()
I should have copied this from changectx.__init__ into in 35b34202dd3b
(context: handle partial nodeids in revsymbol(), 2018-04-08).
Differential Revision: https://phab.mercurial-scm.org/D3310
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 13 Apr 2018 11:00:30 -0700 |
parents | 5f8f013e7d52 |
children | e743b8524d60 |
files | mercurial/scmutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/scmutil.py Fri Apr 13 22:46:37 2018 -0700 +++ b/mercurial/scmutil.py Fri Apr 13 11:00:30 2018 -0700 @@ -503,7 +503,7 @@ except KeyError: pass - node = repo.unfiltered().changelog._partialmatch(symbol) + node = resolvehexnodeidprefix(repo, symbol) if node is not None: rev = repo.changelog.rev(node) return repo[rev]