##// END OF EJS Templates
eol: test win32text compatible encode/decode filters
Martin Geisler -
r13503:5007ff32 stable
parent child Browse files
Show More
@@ -398,3 +398,31 b' Test issue2569 -- eol extension takes wr'
398 $ touch .hgeol
398 $ touch .hgeol
399 $ hg status --traceback
399 $ hg status --traceback
400 ? .hgeol
400 ? .hgeol
401 $ cd ..
402
403 Test cleverencode: and cleverdecode: aliases for win32text extension
404
405 $ echo '[encode]' >> $HGRCPATH
406 $ echo '**.txt = cleverencode: =' >> $HGRCPATH
407 $ echo '[decode]' >> $HGRCPATH
408 $ echo '**.txt = cleverdecode: =' >> $HGRCPATH
409
410 $ hg init win32compat
411 $ cd win32compat
412 $ printf "foo\r\nbar\r\nbaz\r\n" > win.txt
413 $ printf "foo\nbar\nbaz\n" > unix.txt
414 $ hg add
415 adding unix.txt
416 adding win.txt
417 $ hg commit -m checkin
418
419 Check that both files have LF line-endings in the repository:
420
421 $ hg cat win.txt
422 foo
423 bar
424 baz
425 $ hg cat unix.txt
426 foo
427 bar
428 baz
General Comments 0
You need to be logged in to leave comments. Login now