compat: rename resolvepartialhexnodeid to resolvehexnodeidprefix
The name changed in 5f8f013e7d52
--- 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: