This is an archive of the discontinued Mercurial Phabricator instance.

tweakdefaults: do not change the date when using amend --to
ClosedPublic

Authored by simonfar on Aug 11 2017, 12:32 PM.
Tags
None
Subscribers
None

Details

Summary

amend --to is a thin wrapper around histedit, and fails if you ask it
to update the date. tweakdefaults can be configured to ask amend to change the
date. When this is the case, don't change the date when using --to, so that it
can work.

Test Plan

Test case added here fails before the change complaining about other
flags with --to, and fails in the histedit afterwards (I'm not clear on why - I
suspect phases are significant here).

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

simonfar created this revision.Aug 11 2017, 12:32 PM
ryanmce accepted this revision.Aug 15 2017, 5:19 AM
This revision is now accepted and ready to land.Aug 15 2017, 5:19 AM
This revision was automatically updated to reflect the committed changes.