mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
eol: test win32text compatible encode/decode filters
This commit is contained in:
parent
1d26a9d184
commit
3ff64e3e9e
@ -398,3 +398,31 @@ Test issue2569 -- eol extension takes write lock on reading:
|
||||
$ 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
|
||||
|
Loading…
Reference in New Issue
Block a user