D3310: scmutil: use resolvehexnodeidprefix() from revsymbol()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sat Apr 14 03:20:34 EDT 2018
martinvonz updated this revision to Diff 8253.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3310?vs=8116&id=8253
REVISION DETAIL
https://phab.mercurial-scm.org/D3310
AFFECTED FILES
mercurial/scmutil.py
CHANGE DETAILS
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -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]
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list