Skip to content
Snippets Groups Projects
Commit 5007ff32 authored by Martin Geisler's avatar Martin Geisler
Browse files

eol: test win32text compatible encode/decode filters

parent c0f25275
No related branches found
No related tags found
No related merge requests found
......@@ -398,3 +398,31 @@
$ touch .hgeol
$ hg status --traceback
? .hgeol
$ cd ..
Test cleverencode: and cleverdecode: aliases for win32text extension
$ echo '[encode]' >> $HGRCPATH
$ echo '**.txt = cleverencode: =' >> $HGRCPATH
$ echo '[decode]' >> $HGRCPATH
$ echo '**.txt = cleverdecode: =' >> $HGRCPATH
$ hg init win32compat
$ cd win32compat
$ printf "foo\r\nbar\r\nbaz\r\n" > win.txt
$ printf "foo\nbar\nbaz\n" > unix.txt
$ hg add
adding unix.txt
adding win.txt
$ hg commit -m checkin
Check that both files have LF line-endings in the repository:
$ hg cat win.txt
foo
bar
baz
$ hg cat unix.txt
foo
bar
baz
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment