This is an archive of the discontinued Mercurial Phabricator instance.

record: fix revert -i for lines without newline (issue5651)
ClosedPublic

Authored by quark on Aug 27 2017, 4:43 PM.

Details

Summary

This is a regression caused by 66117dae87f9. Code prior to 66117dae87f9
seems to miss the "\ No newline at end of file" line.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Aug 27 2017, 4:43 PM
yuja accepted this revision.Aug 28 2017, 10:13 AM
yuja added a subscriber: yuja.

Queued for stable, thanks.

This seems correct since scanpatch() explicitly includes the \ No newline line
in hunk.

This revision is now accepted and ready to land.Aug 28 2017, 10:13 AM
This revision was automatically updated to reflect the committed changes.