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 |
---|---|---|---|---|
d41b278d1141 | c5942555e2ee | Pierre-Yves David | Nov 8 2019, 9:11 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: | ||||
final[x] = succs | final[x] = succs | ||||
toproceed.remove(x) | toproceed.remove(x) | ||||
# remove tmpnodes from final mapping | # remove tmpnodes from final mapping | ||||
for n in tmpnodes: | for n in tmpnodes: | ||||
del final[n] | del final[n] | ||||
# we expect all changes involved in final to exist in the repo | # we expect all changes involved in final to exist in the repo | ||||
# turn `final` into list (topologically sorted) | # turn `final` into list (topologically sorted) | ||||
nm = state.repo.changelog.nodemap | get_rev = state.repo.changelog.index.get_rev | ||||
for prec, succs in final.items(): | for prec, succs in final.items(): | ||||
final[prec] = sorted(succs, key=nm.get) | final[prec] = sorted(succs, key=get_rev) | ||||
# computed topmost element (necessary for bookmark) | # computed topmost element (necessary for bookmark) | ||||
if new: | if new: | ||||
newtopmost = sorted(new, key=state.repo.changelog.rev)[-1] | newtopmost = sorted(new, key=state.repo.changelog.rev)[-1] | ||||
elif not final: | elif not final: | ||||
# Nothing rewritten at all. we won't need `newtopmost` | # Nothing rewritten at all. we won't need `newtopmost` | ||||
# It is the same as `oldtopmost` and `processreplacement` know it | # It is the same as `oldtopmost` and `processreplacement` know it | ||||
newtopmost = None | newtopmost = None |