This is an archive of the discontinued Mercurial Phabricator instance.

split: preserve phase of commit that is being split
AbandonedPublic

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

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

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

Now, splitting a draft commit with phases.new-commit=secret does not cause the
new commits to become secret, and splitting a secret commit with
phases.new-commit=draft 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

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

martinvonz created this revision.Jun 19 2018, 5:16 PM
martinvonz abandoned this revision.Jun 19 2018, 5:17 PM