##// END OF EJS Templates
merge with stable
Mads Kiilerich -
r12398:2bc926ad merge default
parent child Browse files
Show More
@@ -1,20 +1,20 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 "$TESTDIR/hghave" docutils || exit 80
3 "$TESTDIR/hghave" docutils || exit 80
4
4
5 HGENCODING=UTF-8
5 HGENCODING=UTF-8
6 export HGENCODING
6 export HGENCODING
7
7
8 for PO in C $TESTDIR/../i18n/*.po; do
8 for PO in C $TESTDIR/../i18n/*.po; do
9 LOCALE=`basename $PO .po`
9 LOCALE=`basename $PO .po`
10 echo
10 echo
11 echo "% extracting documentation from $LOCALE"
11 echo "% extracting documentation from $LOCALE"
12 echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt
12 echo ".. -*- coding: utf-8 -*-" > gendoc-$LOCALE.txt
13 echo "" >> gendoc-$LOCALE.txt
13 echo "" >> gendoc-$LOCALE.txt
14 LC_ALL=$LOCALE python $TESTDIR/../doc/gendoc.py >> gendoc-$LOCALE.txt || exit
14 LC_ALL=$LOCALE python $TESTDIR/../doc/gendoc.py >> gendoc-$LOCALE.txt 2> /dev/null || exit
15
15
16 # We call runrst without adding "--halt warning" to make it report
16 # We call runrst without adding "--halt warning" to make it report
17 # all errors instead of stopping on the first one.
17 # all errors instead of stopping on the first one.
18 echo "checking for parse errors"
18 echo "checking for parse errors"
19 python $TESTDIR/../doc/runrst html gendoc-$LOCALE.txt /dev/null
19 python $TESTDIR/../doc/runrst html gendoc-$LOCALE.txt /dev/null
20 done
20 done
@@ -1,120 +1,121 b''
1 $ "$TESTDIR/hghave" symlink || exit 80
1 $ "$TESTDIR/hghave" symlink || exit 80
2
2
3 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "[extensions]" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
4 $ echo "mq=" >> $HGRCPATH
5
5
6 $ hg init
6 $ hg init
7 $ hg qinit
7 $ hg qinit
8 $ hg qnew base.patch
8 $ hg qnew base.patch
9 $ echo aaa > a
9 $ echo aaa > a
10 $ echo bbb > b
10 $ echo bbb > b
11 $ echo ccc > c
11 $ echo ccc > c
12 $ hg add a b c
12 $ hg add a b c
13 $ hg qrefresh
13 $ hg qrefresh
14 $ $TESTDIR/readlink.py a
14 $ $TESTDIR/readlink.py a
15 a -> a not a symlink
15 a -> a not a symlink
16
16
17
17
18 test replacing a file with a symlink
18 test replacing a file with a symlink
19
19
20 $ hg qnew symlink.patch
20 $ hg qnew symlink.patch
21 $ rm a
21 $ rm a
22 $ ln -s b a
22 $ ln -s b a
23 $ hg qrefresh --git
23 $ hg qrefresh --git
24 $ $TESTDIR/readlink.py a
24 $ $TESTDIR/readlink.py a
25 a -> b
25 a -> b
26
26
27 $ hg qpop
27 $ hg qpop
28 popping symlink.patch
28 popping symlink.patch
29 now at: base.patch
29 now at: base.patch
30 $ hg qpush
30 $ hg qpush
31 applying symlink.patch
31 applying symlink.patch
32 now at: symlink.patch
32 now at: symlink.patch
33 $ $TESTDIR/readlink.py a
33 $ $TESTDIR/readlink.py a
34 a -> b
34 a -> b
35
35
36
36
37 test updating a symlink
37 test updating a symlink
38
38
39 $ rm a
39 $ rm a
40 $ ln -s c a
40 $ ln -s c a
41 $ hg qnew --git -f updatelink
41 $ hg qnew --git -f updatelink
42 $ $TESTDIR/readlink.py a
42 $ $TESTDIR/readlink.py a
43 a -> c
43 a -> c
44 $ hg qpop
44 $ hg qpop
45 popping updatelink
45 popping updatelink
46 now at: symlink.patch
46 now at: symlink.patch
47 $ hg qpush --debug
47 $ hg qpush --debug
48 applying updatelink
48 applying updatelink
49 patching file a
49 patching file a
50 a
50 a
51 now at: updatelink
51 now at: updatelink
52 $ $TESTDIR/readlink.py a
52 $ $TESTDIR/readlink.py a
53 a -> c
53 a -> c
54 $ hg st
54 $ hg st
55
55
56
56
57 test replacing a symlink with a file
57 test replacing a symlink with a file
58
58
59 $ ln -s c s
59 $ ln -s c s
60 $ hg add s
60 $ hg add s
61 $ hg qnew --git -f addlink
61 $ hg qnew --git -f addlink
62 $ rm s
62 $ rm s
63 $ echo sss > s
63 $ echo sss > s
64 $ hg qnew --git -f replacelinkwithfile
64 $ hg qnew --git -f replacelinkwithfile
65 $ hg qpop
65 $ hg qpop
66 popping replacelinkwithfile
66 popping replacelinkwithfile
67 now at: addlink
67 now at: addlink
68 $ hg qpush
68 $ hg qpush
69 applying replacelinkwithfile
69 applying replacelinkwithfile
70 now at: replacelinkwithfile
70 now at: replacelinkwithfile
71 $ cat s
71 $ cat s
72 sss
72 sss
73 $ hg st
73 $ hg st
74
74
75
75
76 test symlink removal
76 test symlink removal
77
77
78 $ hg qnew removesl.patch
78 $ hg qnew removesl.patch
79 $ hg rm a
79 $ hg rm a
80 $ hg qrefresh --git
80 $ hg qrefresh --git
81 $ hg qpop
81 $ hg qpop
82 popping removesl.patch
82 popping removesl.patch
83 now at: replacelinkwithfile
83 now at: replacelinkwithfile
84 $ hg qpush
84 $ hg qpush
85 applying removesl.patch
85 applying removesl.patch
86 now at: removesl.patch
86 now at: removesl.patch
87 $ hg st -c
87 $ hg st -c
88 C b
88 C b
89 C c
89 C c
90 C s
90 C s
91
91
92 replace broken symlink with another broken symlink
92 replace broken symlink with another broken symlink
93
93
94 $ ln -s linka linka
94 $ ln -s linka linka
95 $ hg add linka
95 $ hg add linka
96 $ hg qnew link
96 $ hg qnew link
97 $ hg mv linka linkb
97 $ hg mv linka linkb
98 $ ln -sf linkb linkb
98 $ rm linkb
99 $ ln -s linkb linkb
99 $ hg qnew movelink
100 $ hg qnew movelink
100 $ hg qpop
101 $ hg qpop
101 popping movelink
102 popping movelink
102 now at: link
103 now at: link
103 $ hg qpush
104 $ hg qpush
104 applying movelink
105 applying movelink
105 now at: movelink
106 now at: movelink
106 $ $TESTDIR/readlink.py linkb
107 $ $TESTDIR/readlink.py linkb
107 linkb -> linkb
108 linkb -> linkb
108
109
109 check patch does not overwrite untracked symlinks
110 check patch does not overwrite untracked symlinks
110
111
111 $ hg qpop
112 $ hg qpop
112 popping movelink
113 popping movelink
113 now at: link
114 now at: link
114 $ ln -s linkbb linkb
115 $ ln -s linkbb linkb
115 $ hg qpush
116 $ hg qpush
116 applying movelink
117 applying movelink
117 patch failed, unable to continue (try -v)
118 patch failed, unable to continue (try -v)
118 patch failed, rejects left in working dir
119 patch failed, rejects left in working dir
119 errors during apply, please fix and refresh movelink
120 errors during apply, please fix and refresh movelink
120 [2]
121 [2]
General Comments 0
You need to be logged in to leave comments. Login now