directaccess: use resolvehexnodeidprefix() instead of _partialmatch()
Same reasoning as previous commit: I want to make
resolvehexnodeidprefix() move complex and don't want to duplicate that
code in directaccess.
Differential Revision: https://phab.mercurial-scm.org/D3463
--- a/mercurial/scmutil.py Mon May 07 14:32:55 2018 -0700
+++ b/mercurial/scmutil.py Mon May 07 12:18:09 2018 -0700
@@ -1541,7 +1541,6 @@
unficl = unfi.changelog
cl = repo.changelog
tiprev = len(unficl)
- pmatch = unficl._partialmatch
allowrevnums = repo.ui.configbool('experimental', 'directaccess.revnums')
for s in symbols:
try:
@@ -1557,7 +1556,7 @@
pass
try:
- s = pmatch(s)
+ s = resolvehexnodeidprefix(unfi, s)
except (error.LookupError, error.WdirUnsupported):
s = None