# HG changeset patch # User Anton Shestakov # Date 1724418028 -14400 # Node ID 4f02e7f8d56c8b00f911980f2a3ac0768a5e3e53 # Parent 08947ff0c019231d2ca3eb5cd11993c32d0e3c75 evolve: check that the evolved revisions are indeed in the repo during abort Otherwise we might trigger an error while trying to access a revision that was saved into evolvestate, but wasn't yet created in the repo for whatever reason. diff -r 08947ff0c019 -r 4f02e7f8d56c hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Fri Jun 28 17:57:28 2024 +0400 +++ b/hgext3rd/evolve/evolvecmd.py Fri Aug 23 17:00:28 2024 +0400 @@ -1897,10 +1897,10 @@ cleanup = True startnode = evolvestate[b'startnode'] for old, new in evolvestate[b'replacements'].items(): - if new: + if new and new in repo: evolvedctx.append(repo[new]) for temp in evolvestate[b'temprevs']: - if temp: + if temp and temp in repo: evolvedctx.append(repo[temp]) evolvedrevs = [c.rev() for c in evolvedctx]