( )⚙ D3659 graft: reuse --user and --date values in `hg graft --continue` (BC)

This is an archive of the discontinued Mercurial Phabricator instance.

graft: reuse --user and --date values in `hg graft --continue` (BC)
ClosedPublic

Authored by pulkit on May 25 2018, 4:52 PM.

Details

Summary

Reading the user and date information from graftstate during `hg graft
--continue` will help us in preserving the user and date arguments passed when
hg graft was called. This patch reads that information and reuses that while
running hg graft --continue. So after this patch, --user and --date values are
preserved even if conflicts occur and user don't need to pass them again.

The test changes demonstrate the fix.

This is a backward incompatible change but I think of this more as a bug fix.
Also thinking about removing the line from hg help graft which says --continue
does not reapply other flags but need to check what are the other flags which
needs to be preserved.

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.

Event Timeline

pulkit created this revision.May 25 2018, 4:52 PM
indygreg accepted this revision.May 25 2018, 5:09 PM
This revision is now accepted and ready to land.May 25 2018, 5:09 PM
This revision was automatically updated to reflect the committed changes.