##// END OF EJS Templates
patch: better handling of sequence of offset patch hunks (issue1941)...
patch: better handling of sequence of offset patch hunks (issue1941) The built-in patch implementation applied the hunks to the wrong lines of the file if the file in the repo has been modified to skew the patch line numbers and the file contains repetitive sequences of lines.

File last commit:

r10135:9a4034b6 stable
r10135:9a4034b6 stable
Show More
test-patch-offset.out
10 lines | 263 B | text/plain | TextLexer
/ tests / test-patch-offset.out
% prepare repo
adding a
% import patch
applying patch from stdin
patching file a
Hunk #1 succeeded at 43 (offset 34 lines).
Hunk #2 succeeded at 87 (offset 34 lines).
Hunk #3 succeeded at 109 (offset 34 lines).
a
% compare imported changes against reference file