# HG changeset patch # User Anton Shestakov # Date 1583595494 -25200 # Node ID 4230f046ddb964b174f2560aed0fbc4004d29635 # Parent 4bac3454beef1bf1060d39266b2e1dc3afa3a220 evolve: drop 4.5 compat for scmutil.resolvehexnodeidprefix() diff -r 4bac3454beef -r 4230f046ddb9 hgext3rd/evolve/evolvecmd.py --- 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]