Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
( )
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | hgext/histedit.py (4 lines) |
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') |