# HG changeset patch # User Pierre-Yves David # Date 1523891487 -7200 # Node ID 0f0f31351d6db350a548437eb4c41f62503ac8d9 # Parent 1de6ba0ac6d763572ebdf166f4a95889b47b3fe6 compat: avoid using partial node ID in lookup This is getting deprecated in 4.6. diff -r 1de6ba0ac6d7 -r 0f0f31351d6d hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Mon Apr 16 00:05:54 2018 +0200 +++ b/hgext3rd/evolve/evolvecmd.py Mon Apr 16 17:11:27 2018 +0200 @@ -508,12 +508,10 @@ sha1s = re.findall(sha1re, commitmsg) unfi = repo.unfiltered() for sha1 in sha1s: - ctx = None - try: - ctx = unfi[sha1] - except error.RepoLookupError: + fullnode = scmutil.resolvepartialhexnodeid(repo, sha1) + if fullnode is None: continue - + ctx = unfi[fullnode] if not ctx.obsolete(): continue