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

login
register
mail settings
Submitter phabricator
Date April 14, 2018, 8:12 a.m.
Message ID <263b1d704418882641915bb288a7b658@localhost.localdomain>
Download mbox | patch
Permalink /patch/31009/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2018, 8:12 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGab828755e1ea: scmutil: use resolvehexnodeidprefix() from revsymbol() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

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

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]