tests/test-eolfilename.t
branchstable
changeset 12942 05fffd665170
parent 12425 fcf55506c2f4
child 13945 03f3ce7ca2a8
equal deleted inserted replaced
12941:b911cb80c671 12942:05fffd665170
     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
    12   adding he\rllo (esc)
    13 llo
       
    14   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    13   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    15   [255]
    14   [255]
    16   $ hg ci -A -m m
    15   $ hg ci -A -m m
    17   adding he
    16   adding he\rllo (esc)
    18 llo
       
    19   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    17   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
    20   [255]
    18   [255]
    21   $ rm "$A"
    19   $ rm "$A"
    22   $ echo foo > "hell
    20   $ echo foo > "hell
    23   > o"
    21   > o"
    31   o
    29   o
    32   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
    30   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
    33   [255]
    31   [255]
    34   $ echo foo > "$A"
    32   $ echo foo > "$A"
    35   $ hg debugwalk
    33   $ hg debugwalk
    36   f  he
    34   f  he\rllo  he\rllo (esc)
    37 llo  he
       
    38 llo
       
    39   f  hell
    35   f  hell
    40   o  hell
    36   o  hell
    41   o
    37   o
    42 
    38 
    43 http://mercurial.selenic.com/bts/issue2036
    39 http://mercurial.selenic.com/bts/issue2036
    53   $ A=`printf 'foo\nbar'`
    49   $ A=`printf 'foo\nbar'`
    54   $ B=`printf 'foo\nbar.baz'`
    50   $ B=`printf 'foo\nbar.baz'`
    55   $ touch "$A"
    51   $ touch "$A"
    56   $ touch "$B"
    52   $ touch "$B"
    57   $ hg status --color=always
    53   $ hg status --color=always
    58   ? foo
    54   \x1b[0;35;1;4m? foo\x1b[0m (esc)
    59   bar
    55   \x1b[0;35;1;4mbar\x1b[0m (esc)
    60   ? foo
    56   \x1b[0;35;1;4m? foo\x1b[0m (esc)
    61   bar.baz
    57   \x1b[0;35;1;4mbar.baz\x1b[0m (esc)