histedit: don't cleanup nodes already disposed of
authorBoris Feld <boris.feld@octobus.net>
Wed, 26 Sep 2018 21:51:29 +0200
changeset 39914 b153ca77a52b
parent 39913 8bd589aecf65
child 39915 7198cdbbbde1
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.
hgext/histedit.py
--- 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