Skip to content
  • Kyle Lippincott's avatar
    split: handle partial commit of renames when doing split or record (issue5723) · 3cf091843b4f
    Kyle Lippincott authored
    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 was because the logic for handling partial
    application of the patches relies on knowing what files are "new with
    modifications" and it doesn't treat "rename destination" as "new".
    
    There was a complicating issue, however. We're relying on the patch header
    specifying the copy from/to information, which works as long as the 'copy from'
    file is there. In the case of renames, however, the 'rename from' file is *not*
    there, so we need to add it back.
    
    Differential Revision: https://phab.mercurial-scm.org/D6768
    3cf091843b4f