This is an archive of the discontinued Mercurial Phabricator instance.

split: preserve phase of commit that is being split

Authored by martinvonz on Jun 19 2018, 5:16 PM.



With this change, hg split will preserve the phase of the commit that is being
split, ignoring the setting. Previously, we would use whatever was set to (unless our parent was secret, then we would be
secret even if

Now, splitting a draft commit with does not cause the
new commits to become secret, and splitting a secret commit with and a draft parent does not cause the new commits to
become draft.

Test cases and commit message taken from Kyle Lippincott's D2016 (thanks!).

Diff Detail

rHG Mercurial
Lint Skipped
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Jun 19 2018, 5:16 PM
This revision was automatically updated to reflect the committed changes.