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

login
register
mail settings
Submitter phabricator
Date May 8, 2018, 12:47 p.m.
Message ID <ce02a3c49d8e17debf041246ca3d8f7d@localhost.localdomain>
Download mbox | patch
Permalink /patch/31341/
State Not Applicable
Headers show

Comments

phabricator - May 8, 2018, 12:47 p.m.
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




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

Patch

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