This is an archive of the discontinued Mercurial Phabricator instance.

split: handle partial commit of copies when doing split or record
ClosedPublic

Authored by spectral on Aug 27 2019, 3:45 PM.

Details

Summary

When using split or record, using either interface (text or curses), selecting
portions of the file to be committed/recorded did not work; the entire file was
treated as having been selected. This appears to be because the logic for
handling partial application of the patches relies on knowing what files are
"new with modifications", and it doesn't treat "copy destination" as "new".

Handling renames correctly is more difficult and will be done in a later patch.

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

spectral created this revision.Aug 27 2019, 3:45 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.