diff -r 8bd589aecf65 -r b153ca77a52b 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