# HG changeset patch # User Pierre-Yves David # Date 2019-11-08 14:08:27 # Node ID ac6414f2d877365f78bb86e79220dac5b8b4af43 # Parent e461d2e6d6aa88365b61d8cc084abbe83d2b3032 index: use `index.has_node` in `histedit._finishhistedit Differential Revision: https://phab.mercurial-scm.org/D7351 diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -2046,11 +2046,11 @@ def _finishhistedit(ui, repo, state, fm) mapping[n] = () # remove entries about unknown nodes - nodemap = repo.unfiltered().changelog.nodemap + has_node = repo.unfiltered().changelog.index.has_node mapping = { k: v for k, v in mapping.items() - if k in nodemap and all(n in nodemap for n in v) + if has_node(k) and all(has_node(n) for n in v) } scmutil.cleanupnodes(repo, mapping, b'histedit') hf = fm.hexfunc