Mercurial > hg
comparison setup.py @ 16123:b0c7525f826d stable
patch: fix fuzzing of hunks without previous lines (issue3264)
When applying hunks such as:
@@ -2,1 +2,2 @@
context
+change
fuzzing would empty the "old" block and make patchfile.apply() traceback.
Instead, we apply the new block at specified location without testing.
The "bottom hunk" test was removed as patch(1) has no problem applying hunk
with no context in the middle of a file.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Mon, 13 Feb 2012 16:47:31 +0100 |
parents | 9926aab3d0b5 |
children | 82ce91a9fd94 |
comparison
equal
deleted
inserted
replaced
16122:9ef3a4a2c6c0 | 16123:b0c7525f826d |
---|