changeset 39919:b153ca77a52b

histedit: don't cleanup nodes already disposed of If something else took care of these temporary nodes, we don't need to do anything about it. This less liberal usage of pruning through cleanup nodes will help us further cleanup on the road to explicitly tracks folds.
author Boris Feld <boris.feld@octobus.net>
date Wed, 26 Sep 2018 21:51:29 +0200
parents 8bd589aecf65
children 7198cdbbbde1
files hgext/histedit.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Sun Sep 30 01:15:46 2018 -0400
+++ b/hgext/histedit.py	Wed Sep 26 21:51:29 2018 +0200
@@ -1202,7 +1202,8 @@
         mapping = {}
 
     for n in tmpnodes:
-        mapping[n] = ()
+        if n in repo:
+            mapping[n] = ()
 
     # remove entries about unknown nodes
     nodemap = repo.unfiltered().changelog.nodemap