Commit Graph

4 Commits

Author SHA1 Message Date
Patrick Mezard
071f2dab4e mq: upgrade to git patch when necessary (issue767) 2010-01-01 21:21:34 +01:00
Patrick Mezard
d360072399 diffhelpers: handle CRLF in hunk last line without EOL
Note that diff generation code always ends last lines without newline with a
LF, so this is a tolerance.
2009-12-23 19:31:48 +01:00
Patrick Mezard
cd49284bae patch: drop eol normalization fast-path for 'lf' and 'crlf'
With eolmode set to 'lf' or 'crlf' we avoided the hunk duplication and
normalization by reading the input patch in text mode. Dropping this
optimization simplifies code expectations for a small overhead.

The change in test-mq-eol comes from a tolerance to CRLF instead of LF for last
lines without newlines being broken by this revision. This tolerance was only
partially supported and will be added again in a better way.
2009-12-23 19:31:48 +01:00
Patrick Mezard
7039de96dc Make mq, record and transplant honor patch.eol 2009-06-15 00:03:27 +02:00