compat: rename resolvepartialhexnodeid to resolvehexnodeidprefix
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 18 Apr 2018 10:08:05 +0200
changeset 3676 cded30ad25e4
parent 3675 1dccccde82bb
child 3677 60d396d3da80
compat: rename resolvepartialhexnodeid to resolvehexnodeidprefix The name changed in 5f8f013e7d52
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Tue Apr 17 19:42:46 2018 +0200
+++ b/hgext3rd/evolve/evolvecmd.py	Wed Apr 18 10:08:05 2018 +0200
@@ -508,8 +508,8 @@
     sha1s = re.findall(sha1re, commitmsg)
     unfi = repo.unfiltered()
     for sha1 in sha1s:
-        if util.safehasattr(scmutil, 'resolvepartialhexnodeid'): # > hg-4.6
-            fullnode = scmutil.resolvepartialhexnodeid(unfi, sha1)
+        if util.safehasattr(scmutil, 'resolvehexnodeidprefix'): # > hg-4.6
+            fullnode = scmutil.resolvehexnodeidprefix(unfi, sha1)
         else:
             fullnode = unfi.changelog.index.partialmatch(sha1)
         if fullnode is None: