##// END OF EJS Templates
index: use `index.has_node` in `histedit._finishhistedit...
marmoute -
r43853:ac6414f2 default draft
parent child Browse files
Show More
@@ -2046,11 +2046,11 b' def _finishhistedit(ui, repo, state, fm)'
2046 2046 mapping[n] = ()
2047 2047
2048 2048 # remove entries about unknown nodes
2049 nodemap = repo.unfiltered().changelog.nodemap
2049 has_node = repo.unfiltered().changelog.index.has_node
2050 2050 mapping = {
2051 2051 k: v
2052 2052 for k, v in mapping.items()
2053 if k in nodemap and all(n in nodemap for n in v)
2053 if has_node(k) and all(has_node(n) for n in v)
2054 2054 }
2055 2055 scmutil.cleanupnodes(repo, mapping, b'histedit')
2056 2056 hf = fm.hexfunc
General Comments 0
You need to be logged in to leave comments. Login now