diff tests/test-import-eol.out @ 10127:d8214e944b84

patch: fix eolmode=auto with new files If target file does not exist or has no eol, current code was normalizing eols to LF. Preserve patch file eols instead.
author Patrick Mezard <pmezard@gmail.com>
date Wed, 23 Dec 2009 19:31:47 +0100
parents 1720d70cd6d4
children 7936cd261dc9
line wrap: on
line diff
--- a/tests/test-import-eol.out	Wed Dec 23 19:18:03 2009 +0100
+++ b/tests/test-import-eol.out	Wed Dec 23 19:31:47 2009 +0100
@@ -17,6 +17,10 @@
 % auto EOL on CRLF file
 applying eol.diff
 'a\r\nyyyy\r\ncc\r\n\r\nd\r\ne'
+% auto EOL on new file or source without any EOL
+applying noeol.diff
+'noeol\r\nnoeol\n'
+'neweol\nneweol\r\n'
 adding b
 % binary patch with --eol
 applying bin.diff