--- a/hgext3rd/evolve/evolvecmd.py Tue Apr 17 18:30:56 2018 +0200
+++ b/hgext3rd/evolve/evolvecmd.py Tue Apr 17 19:42:26 2018 +0200
@@ -508,7 +508,10 @@
sha1s = re.findall(sha1re, commitmsg)
unfi = repo.unfiltered()
for sha1 in sha1s:
- fullnode = scmutil.resolvepartialhexnodeid(unfi, sha1)
+ if util.safehasattr(scmutil, 'resolvepartialhexnodeid'): # > hg-4.6
+ fullnode = scmutil.resolvepartialhexnodeid(unfi, sha1)
+ else:
+ fullnode = unfi.changelog.index.partialmatch(sha1)
if fullnode is None:
continue
ctx = unfi[fullnode]