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

login
register
mail settings
Submitter phabricator
Date April 13, 2018, 6 p.m.
Message ID <differential-rev-PHID-DREV-pgpywzc35ifg7wkvysu6-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30857/
State Superseded
Headers show

Comments

phabricator - April 13, 2018, 6 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I should have copied this from changectx.__init__ into in https://phab.mercurial-scm.org/rHG35b34202dd3b2effc6e5ff5a82f911825a9cf532
  (context: handle partial nodeids in revsymbol(), 2018-04-08).

REPOSITORY
  rHG Mercurial

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]