tests/test-eolfilename.t
changeset 17742 405b6bd015df
parent 16913 f2719b387380
child 17910 c8709ff57ff2
equal deleted inserted replaced
17741:a51304b851c6 17742:405b6bd015df
     7   $ hg init foo
     7   $ hg init foo
     8   $ cd foo
     8   $ cd foo
     9   $ A=`printf 'he\rllo'`
     9   $ A=`printf 'he\rllo'`
    10   $ echo foo > "$A"
    10   $ echo foo > "$A"
    11   $ hg add
    11   $ hg add
    12   adding he\rllo (esc)
    12   adding he\r (no-eol) (esc)
       
    13   llo
    13   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    14   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    14   [255]
    15   [255]
    15   $ hg ci -A -m m
    16   $ hg ci -A -m m
    16   adding he\rllo (esc)
    17   adding he\r (no-eol) (esc)
       
    18   llo
    17   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    19   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    18   [255]
    20   [255]
    19   $ rm "$A"
    21   $ rm "$A"
    20   $ echo foo > "hell
    22   $ echo foo > "hell
    21   > o"
    23   > o"
    29   o
    31   o
    30   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
    32   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
    31   [255]
    33   [255]
    32   $ echo foo > "$A"
    34   $ echo foo > "$A"
    33   $ hg debugwalk
    35   $ hg debugwalk
    34   f  he\rllo  he\rllo (esc)
    36   f  he\r (no-eol) (esc)
       
    37   llo  he\r (no-eol) (esc)
       
    38   llo
    35   f  hell
    39   f  hell
    36   o  hell
    40   o  hell
    37   o
    41   o
    38 
    42 
    39   $ echo bla > quickfox
    43   $ echo bla > quickfox