D3463: directaccess: use resolvehexnodeidprefix() instead of _partialmatch()

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue May 8 12:47:35 UTC 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG69de3c3de036: directaccess: use resolvehexnodeidprefix() instead of _partialmatch() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3463?vs=8490&id=8518

REVISION DETAIL
  https://phab.mercurial-scm.org/D3463

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
@@ -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
 



To: martinvonz, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list