Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/histedit.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
2822f1ca3b0b | 60556e6b5a77 | Pierre-Yves David | Nov 8 2019, 9:08 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
else: | else: | ||||
mapping = {} | mapping = {} | ||||
for n in tmpnodes: | for n in tmpnodes: | ||||
if n in repo: | if n in repo: | ||||
mapping[n] = () | mapping[n] = () | ||||
# remove entries about unknown nodes | # remove entries about unknown nodes | ||||
nodemap = repo.unfiltered().changelog.nodemap | has_node = repo.unfiltered().changelog.index.has_node | ||||
mapping = { | mapping = { | ||||
k: v | k: v | ||||
for k, v in mapping.items() | 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') | scmutil.cleanupnodes(repo, mapping, b'histedit') | ||||
hf = fm.hexfunc | hf = fm.hexfunc | ||||
fl = fm.formatlist | fl = fm.formatlist | ||||
fd = fm.formatdict | fd = fm.formatdict | ||||
nodechanges = fd( | nodechanges = fd( | ||||
{ | { | ||||
hf(oldn): fl([hf(n) for n in newn], name=b'node') | hf(oldn): fl([hf(n) for n in newn], name=b'node') |