Patchwork D3310: scmutil: use resolvehexnodeidprefix() from revsymbol()

login
register
mail settings
Submitter phabricator
Date April 14, 2018, 4:16 p.m.
Message ID <6fb79d89cf23d762a3c280eb71d844b7@localhost.localdomain>
Download mbox | patch
Permalink /patch/31046/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2018, 4:16 p.m.
martinvonz updated this revision to Diff 8284.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3310?vs=8261&id=8284

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

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