changeset 37868:69de3c3de036

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
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 07 May 2018 12:18:09 -0700
parents 0a79fb64118e
children 73a74f29eb87
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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