Mercurial > evolve
changeset 3676:cded30ad25e4
compat: rename resolvepartialhexnodeid to resolvehexnodeidprefix
The name changed in 5f8f013e7d52
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 18 Apr 2018 10:08:05 +0200 |
parents | 1dccccde82bb |
children | 60d396d3da80 |
files | hgext3rd/evolve/evolvecmd.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: