compat: avoid using partial node ID in lookup
This is getting deprecated in 4.6.
--- 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