equal
deleted
inserted
replaced
22 -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \ |
22 -e '/[$]Revision/ s/: [a-z0-9][a-z0-9]* /: xxxxxxxxxxxx /' \ |
23 -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!' |
23 -e 's! 20[0-9][0-9]/[01][0-9]/[0-3][0-9] [0-2][0-9]:[0-6][0-9]:[0-6][0-9]! 2000/00/00 00:00:00!' |
24 |
24 |
25 hg --quiet kwdemo "Branch = {branches}" |
25 hg --quiet kwdemo "Branch = {branches}" |
26 |
26 |
|
27 hg init t |
|
28 cd t |
|
29 echo % kwshrink should exit silently in empty/invalid repo |
|
30 hg kwshrink |
|
31 |
|
32 echo % symlink nonexisting file |
|
33 ln -s a sym |
|
34 echo % commit hook must fail with missing file |
|
35 hg --debug commit -A -msym -d '0 0' -u 'User Name <user@example.com>' |
|
36 echo % bundle null revision containing empty symlink |
|
37 hg bundle --base null ../test-keyword.hg |
|
38 cd .. |
|
39 |
27 hg init Test |
40 hg init Test |
28 cd Test |
41 cd Test |
29 |
42 |
30 echo % kwshrink should exit silently in empty/invalid repo |
43 echo % pull from bundle |
31 hg kwshrink |
44 hg pull --traceback -u ../test-keyword.hg |
32 |
45 |
33 echo 'expand $Id$' > a |
46 echo 'expand $Id$' > a |
34 echo 'do not process $Id:' >> a |
47 echo 'do not process $Id:' >> a |
35 echo 'xxx $' >> a |
48 echo 'xxx $' >> a |
36 echo 'ignore $Id$' > b |
49 echo 'ignore $Id$' > b |
37 ln -s a sym |
|
38 echo % cat |
50 echo % cat |
39 cat sym a b |
51 cat sym a b |
40 |
52 |
41 echo % addremove |
53 echo % addremove |
42 hg addremove |
54 hg addremove |
48 hg --debug commit |
60 hg --debug commit |
49 echo % status |
61 echo % status |
50 hg status |
62 hg status |
51 |
63 |
52 echo % commit |
64 echo % commit |
53 hg --debug commit -mabsym -d '0 0' -u 'User Name <user@example.com>' |
65 hg --debug commit -mabsym -d '1 0' -u 'User Name <user@example.com>' |
54 echo % status |
66 echo % status |
55 hg status |
67 hg status |
56 echo % identify |
68 echo % identify |
57 hg --quiet identify |
69 hg --quiet identify |
58 echo % cat |
70 echo % cat |
82 |
94 |
83 echo % check whether expansion is filewise |
95 echo % check whether expansion is filewise |
84 echo '$Id$' > c |
96 echo '$Id$' > c |
85 echo 'tests for different changenodes' >> c |
97 echo 'tests for different changenodes' >> c |
86 echo % commit c |
98 echo % commit c |
87 hg commit -A -mcndiff -d '1 0' -u 'User Name <user@example.com>' |
99 hg commit -A -mcndiff -d '2 0' -u 'User Name <user@example.com>' |
88 echo % force expansion |
100 echo % force expansion |
89 hg -v kwexpand |
101 hg -v kwexpand |
90 echo % compare changenodes in a c |
102 echo % compare changenodes in a c |
91 cat a c |
103 cat a c |
92 |
104 |
112 |
124 |
113 echo % kwfiles added |
125 echo % kwfiles added |
114 hg kwfiles |
126 hg kwfiles |
115 |
127 |
116 echo % commit |
128 echo % commit |
117 hg --debug commit -ma2c -d '1 0' -u 'User Name <user@example.com>' |
129 hg --debug commit -ma2c -d '2 0' -u 'User Name <user@example.com>' |
118 echo % cat a c |
130 echo % cat a c |
119 cat a c |
131 cat a c |
120 echo % touch copied c after 1 second |
132 echo % touch copied c after 1 second |
121 sleep 1 |
133 sleep 1 |
122 touch c |
134 touch c |
125 |
137 |
126 echo % kwfiles |
138 echo % kwfiles |
127 hg kwfiles |
139 hg kwfiles |
128 |
140 |
129 echo % diff --rev |
141 echo % diff --rev |
130 hg diff --rev 0 | grep -v 'b/c' |
142 hg diff --rev 1 | grep -v 'b/c' |
131 |
143 |
132 echo % rollback |
144 echo % rollback |
133 hg rollback |
145 hg rollback |
134 echo % status |
146 echo % status |
135 hg status |
147 hg status |
162 hg commit |
174 hg commit |
163 echo % status |
175 echo % status |
164 hg status |
176 hg status |
165 |
177 |
166 echo % commit |
178 echo % commit |
167 hg --debug commit -l log -d '2 0' -u 'User Name <user@example.com>' |
179 hg --debug commit -l log -d '3 0' -u 'User Name <user@example.com>' |
168 rm log |
180 rm log |
169 echo % status |
181 echo % status |
170 hg status |
182 hg status |
171 |
183 |
172 echo % cat |
184 echo % cat |
189 echo % cat a |
201 echo % cat a |
190 cat a |
202 cat a |
191 |
203 |
192 echo % clone to test incoming |
204 echo % clone to test incoming |
193 cd .. |
205 cd .. |
194 hg clone -r0 Test Test-a |
206 hg clone -r1 Test Test-a |
195 cd Test-a |
207 cd Test-a |
196 cat <<EOF >> .hg/hgrc |
208 cat <<EOF >> .hg/hgrc |
197 [paths] |
209 [paths] |
198 default = ../Test |
210 default = ../Test |
199 EOF |
211 EOF |
202 hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' |
214 hg incoming | sed -e 's/^\(comparing with \).*\(test-keyword.*\)/\1\2/' |
203 |
215 |
204 sed -e 's/Id.*/& rejecttest/' a > a.new |
216 sed -e 's/Id.*/& rejecttest/' a > a.new |
205 mv a.new a |
217 mv a.new a |
206 echo % commit rejecttest |
218 echo % commit rejecttest |
207 hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
219 hg --debug commit -m'rejects?' -d '4 0' -u 'User Name <user@example.com>' |
208 echo % export |
220 echo % export |
209 hg export -o ../rejecttest.diff tip |
221 hg export -o ../rejecttest.diff tip |
210 |
222 |
211 cd ../Test |
223 cd ../Test |
212 echo % import |
224 echo % import |
226 echo % kwexpand a |
238 echo % kwexpand a |
227 hg --verbose kwexpand a |
239 hg --verbose kwexpand a |
228 echo % kwexpand x/a should abort |
240 echo % kwexpand x/a should abort |
229 hg --verbose kwexpand x/a |
241 hg --verbose kwexpand x/a |
230 cd x |
242 cd x |
231 hg --debug commit -m xa -d '3 0' -u 'User Name <user@example.com>' |
243 hg --debug commit -m xa -d '4 0' -u 'User Name <user@example.com>' |
232 echo % cat a |
244 echo % cat a |
233 cat a |
245 cat a |
234 echo % kwshrink a inside directory x |
246 echo % kwshrink a inside directory x |
235 hg --verbose kwshrink a |
247 hg --verbose kwshrink a |
236 echo % cat a |
248 echo % cat a |