This is an archive of the discontinued Mercurial Phabricator instance.

rebase: when using --keep, don't care about pruned commits or divergence
ClosedPublic

Authored by martinvonz on Mar 25 2021, 6:23 PM.

Details

Summary

hg rebase --keep creates duplicate commits (not successors), so I
was surprised that it still skips pruned commits and errors out if it
"would cause divergence" (it wouldn't). I guess this was just an
oversight. We didn't have any tests for it, so I also included that.

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.