scmutil: use resolvehexnodeidprefix() from revsymbol()
authorMartin von Zweigbergk <martinvonz@google.com>
Fri, 13 Apr 2018 11:00:30 -0700
changeset 37679 ab828755e1ea
parent 37678 5f8f013e7d52
child 37680 e743b8524d60
scmutil: use resolvehexnodeidprefix() from revsymbol() I should have copied this from changectx.__init__ into in 35b34202dd3b (context: handle partial nodeids in revsymbol(), 2018-04-08). Differential Revision: https://phab.mercurial-scm.org/D3310
mercurial/scmutil.py
--- a/mercurial/scmutil.py	Fri Apr 13 22:46:37 2018 -0700
+++ b/mercurial/scmutil.py	Fri Apr 13 11:00:30 2018 -0700
@@ -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]