hgext3rd/evolve/evolvecmd.py
changeset 5187 4230f046ddb9
parent 5181 c979d64a2589
child 5193 a4d081923c81
--- a/hgext3rd/evolve/evolvecmd.py	Sat Mar 07 02:26:49 2020 +0700
+++ b/hgext3rd/evolve/evolvecmd.py	Sat Mar 07 22:38:14 2020 +0700
@@ -990,10 +990,7 @@
     sha1s = re.findall(sha1re, commitmsg)
     unfi = repo.unfiltered()
     for sha1 in sha1s:
-        if util.safehasattr(scmutil, 'resolvehexnodeidprefix'): # > hg-4.6
-            fullnode = scmutil.resolvehexnodeidprefix(unfi, sha1)
-        else:
-            fullnode = unfi.changelog.index.partialmatch(sha1)
+        fullnode = scmutil.resolvehexnodeidprefix(unfi, sha1)
         if fullnode is None:
             continue
         ctx = unfi[fullnode]