tests/test-eolfilename.t
changeset 12425 fcf55506c2f4
parent 10475 2253715fde97
child 12942 05fffd665170
equal deleted inserted replaced
12424:1aa7ba33f6a9 12425:fcf55506c2f4
       
     1 http://mercurial.selenic.com/bts/issue352
       
     2 
       
     3   $ "$TESTDIR/hghave" eol-in-paths || exit 80
       
     4 
       
     5 test issue352
       
     6 
       
     7   $ hg init foo
       
     8   $ cd foo
       
     9   $ A=`printf 'he\rllo'`
       
    10   $ echo foo > "$A"
       
    11   $ hg add
       
    12   adding he
       
    13 llo
       
    14   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
       
    15   [255]
       
    16   $ hg ci -A -m m
       
    17   adding he
       
    18 llo
       
    19   abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
       
    20   [255]
       
    21   $ rm "$A"
       
    22   $ echo foo > "hell
       
    23   > o"
       
    24   $ hg add
       
    25   adding hell
       
    26   o
       
    27   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
       
    28   [255]
       
    29   $ hg ci -A -m m
       
    30   adding hell
       
    31   o
       
    32   abort: '\n' and '\r' disallowed in filenames: 'hell\no'
       
    33   [255]
       
    34   $ echo foo > "$A"
       
    35   $ hg debugwalk
       
    36   f  he
       
    37 llo  he
       
    38 llo
       
    39   f  hell
       
    40   o  hell
       
    41   o
       
    42 
       
    43 http://mercurial.selenic.com/bts/issue2036
       
    44 
       
    45   $ cd ..
       
    46 
       
    47 test issue2039
       
    48 
       
    49   $ hg init bar
       
    50   $ cd bar
       
    51   $ echo "[extensions]" >> $HGRCPATH
       
    52   $ echo "color=" >> $HGRCPATH
       
    53   $ A=`printf 'foo\nbar'`
       
    54   $ B=`printf 'foo\nbar.baz'`
       
    55   $ touch "$A"
       
    56   $ touch "$B"
       
    57   $ hg status --color=always
       
    58   ? foo
       
    59   bar
       
    60   ? foo
       
    61   bar.baz