##// END OF EJS Templates
tests: unify test-eolfilename
Matt Mackall -
r12425:fcf55506 default
parent child Browse files
Show More
@@ -1,43 +1,57 b''
1 #!/bin/sh
1 http://mercurial.selenic.com/bts/issue352
2 # http://mercurial.selenic.com/bts/issue352
3
4 "$TESTDIR/hghave" eol-in-paths || exit 80
5
6 echo % test issue352
7 hg init foo
8 cd foo
9
2
10 A=`printf 'he\rllo'`
3 $ "$TESTDIR/hghave" eol-in-paths || exit 80
11
4
12 echo foo > "$A"
5 test issue352
13 hg add
14 hg ci -A -m m
15 rm "$A"
16
17 echo foo > "hell
18 o"
19 hg add
20 hg ci -A -m m
21
6
22 echo foo > "$A"
7 $ hg init foo
23 hg debugwalk
8 $ cd foo
24
9 $ A=`printf 'he\rllo'`
25 # http://mercurial.selenic.com/bts/issue2036
10 $ echo foo > "$A"
26 cd ..
11 $ hg add
27 echo % test issue2039
12 adding he
28
13 llo
29 hg init bar
14 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
30 cd bar
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
31
38 llo
32 echo "[extensions]" >> $HGRCPATH
39 f hell
33 echo "color=" >> $HGRCPATH
34
40 o hell
35 A=`printf 'foo\nbar'`
41 o
36 B=`printf 'foo\nbar.baz'`
42
43 http://mercurial.selenic.com/bts/issue2036
37
44
38 touch "$A"
45 $ cd ..
39 touch "$B"
46
40
47 test issue2039
41 hg status --color=always
48
42
49 $ hg init bar
43 exit 0
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
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now