mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
5056bcbd9e
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.
11 lines
263 B
Plaintext
11 lines
263 B
Plaintext
% 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
|