##// END OF EJS Templates
tests: fix some slash-based Windows failures
Kevin Bullock -
r18108:bc694d78 default
parent child Browse files
Show More
@@ -1,1573 +1,1573
1
1
2 $ add()
2 $ add()
3 > {
3 > {
4 > echo $2 >> $1
4 > echo $2 >> $1
5 > }
5 > }
6 $ hg init t
6 $ hg init t
7 $ cd t
7 $ cd t
8
8
9 set up a boring main branch
9 set up a boring main branch
10
10
11 $ add a a
11 $ add a a
12 $ hg add a
12 $ hg add a
13 $ mkdir x
13 $ mkdir x
14 $ add x/x x
14 $ add x/x x
15 $ hg add x/x
15 $ hg add x/x
16 $ hg ci -m0
16 $ hg ci -m0
17 $ add a m1
17 $ add a m1
18 $ hg ci -m1
18 $ hg ci -m1
19 $ add a m2
19 $ add a m2
20 $ add x/y y1
20 $ add x/y y1
21 $ hg add x/y
21 $ hg add x/y
22 $ hg ci -m2
22 $ hg ci -m2
23 $ cd ..
23 $ cd ..
24
24
25 $ show()
25 $ show()
26 > {
26 > {
27 > echo "# $2:"
27 > echo "# $2:"
28 > echo
28 > echo
29 > echo "% hg st -C $1"
29 > echo "% hg st -C $1"
30 > hg st -C $1
30 > hg st -C $1
31 > echo
31 > echo
32 > echo "% hg diff --git $1"
32 > echo "% hg diff --git $1"
33 > hg diff --git $1
33 > hg diff --git $1
34 > echo
34 > echo
35 > }
35 > }
36 $ count=0
36 $ count=0
37
37
38 make a new branch and get diff/status output
38 make a new branch and get diff/status output
39 $1 - first commit
39 $1 - first commit
40 $2 - second commit
40 $2 - second commit
41 $3 - working dir action
41 $3 - working dir action
42
42
43 $ tb()
43 $ tb()
44 > {
44 > {
45 > hg clone -q t t2 ; cd t2
45 > hg clone -q t t2 ; cd t2
46 > hg co -q -C 0
46 > hg co -q -C 0
47 >
47 >
48 > echo % add a $count
48 > echo % add a $count
49 > add a $count
49 > add a $count
50 > count=`expr $count + 1`
50 > count=`expr $count + 1`
51 > echo % hg ci -m "t0"
51 > echo % hg ci -m "t0"
52 > hg ci -m "t0"
52 > hg ci -m "t0"
53 > echo % $1
53 > echo % $1
54 > $1
54 > $1
55 > echo % hg ci -m "t1"
55 > echo % hg ci -m "t1"
56 > hg ci -m "t1"
56 > hg ci -m "t1"
57 > echo % $2
57 > echo % $2
58 > $2
58 > $2
59 > echo % hg ci -m "t2"
59 > echo % hg ci -m "t2"
60 > hg ci -m "t2"
60 > hg ci -m "t2"
61 > echo % $3
61 > echo % $3
62 > $3
62 > $3
63 > echo
63 > echo
64 > show "" "working to parent"
64 > show "" "working to parent"
65 > show "--rev 0" "working to root"
65 > show "--rev 0" "working to root"
66 > show "--rev 2" "working to branch"
66 > show "--rev 2" "working to branch"
67 > show "--rev 0 --rev ." "root to parent"
67 > show "--rev 0 --rev ." "root to parent"
68 > show "--rev . --rev 0" "parent to root"
68 > show "--rev . --rev 0" "parent to root"
69 > show "--rev 2 --rev ." "branch to parent"
69 > show "--rev 2 --rev ." "branch to parent"
70 > show "--rev . --rev 2" "parent to branch"
70 > show "--rev . --rev 2" "parent to branch"
71 > echo
71 > echo
72 > cd ..
72 > cd ..
73 > rm -rf t2
73 > rm -rf t2
74 > }
74 > }
75
75
76 rename in working dir
76 rename in working dir
77
77
78 $ tb "add a a1" "add a a2" "hg mv a b"
78 $ tb "add a a1" "add a a2" "hg mv a b"
79 % add a 0
79 % add a 0
80 % hg ci -m t0
80 % hg ci -m t0
81 created new head
81 created new head
82 % add a a1
82 % add a a1
83 % hg ci -m t1
83 % hg ci -m t1
84 % add a a2
84 % add a a2
85 % hg ci -m t2
85 % hg ci -m t2
86 % hg mv a b
86 % hg mv a b
87
87
88 # working to parent:
88 # working to parent:
89
89
90 % hg st -C
90 % hg st -C
91 A b
91 A b
92 a
92 a
93 R a
93 R a
94
94
95 % hg diff --git
95 % hg diff --git
96 diff --git a/a b/b
96 diff --git a/a b/b
97 rename from a
97 rename from a
98 rename to b
98 rename to b
99
99
100 # working to root:
100 # working to root:
101
101
102 % hg st -C --rev 0
102 % hg st -C --rev 0
103 A b
103 A b
104 a
104 a
105 R a
105 R a
106
106
107 % hg diff --git --rev 0
107 % hg diff --git --rev 0
108 diff --git a/a b/b
108 diff --git a/a b/b
109 rename from a
109 rename from a
110 rename to b
110 rename to b
111 --- a/a
111 --- a/a
112 +++ b/b
112 +++ b/b
113 @@ -1,1 +1,4 @@
113 @@ -1,1 +1,4 @@
114 a
114 a
115 +0
115 +0
116 +a1
116 +a1
117 +a2
117 +a2
118
118
119 # working to branch:
119 # working to branch:
120
120
121 % hg st -C --rev 2
121 % hg st -C --rev 2
122 A b
122 A b
123 a
123 a
124 R a
124 R a
125 R x/y
125 R x/y
126
126
127 % hg diff --git --rev 2
127 % hg diff --git --rev 2
128 diff --git a/a b/b
128 diff --git a/a b/b
129 rename from a
129 rename from a
130 rename to b
130 rename to b
131 --- a/a
131 --- a/a
132 +++ b/b
132 +++ b/b
133 @@ -1,3 +1,4 @@
133 @@ -1,3 +1,4 @@
134 a
134 a
135 -m1
135 -m1
136 -m2
136 -m2
137 +0
137 +0
138 +a1
138 +a1
139 +a2
139 +a2
140 diff --git a/x/y b/x/y
140 diff --git a/x/y b/x/y
141 deleted file mode 100644
141 deleted file mode 100644
142 --- a/x/y
142 --- a/x/y
143 +++ /dev/null
143 +++ /dev/null
144 @@ -1,1 +0,0 @@
144 @@ -1,1 +0,0 @@
145 -y1
145 -y1
146
146
147 # root to parent:
147 # root to parent:
148
148
149 % hg st -C --rev 0 --rev .
149 % hg st -C --rev 0 --rev .
150 M a
150 M a
151
151
152 % hg diff --git --rev 0 --rev .
152 % hg diff --git --rev 0 --rev .
153 diff --git a/a b/a
153 diff --git a/a b/a
154 --- a/a
154 --- a/a
155 +++ b/a
155 +++ b/a
156 @@ -1,1 +1,4 @@
156 @@ -1,1 +1,4 @@
157 a
157 a
158 +0
158 +0
159 +a1
159 +a1
160 +a2
160 +a2
161
161
162 # parent to root:
162 # parent to root:
163
163
164 % hg st -C --rev . --rev 0
164 % hg st -C --rev . --rev 0
165 M a
165 M a
166
166
167 % hg diff --git --rev . --rev 0
167 % hg diff --git --rev . --rev 0
168 diff --git a/a b/a
168 diff --git a/a b/a
169 --- a/a
169 --- a/a
170 +++ b/a
170 +++ b/a
171 @@ -1,4 +1,1 @@
171 @@ -1,4 +1,1 @@
172 a
172 a
173 -0
173 -0
174 -a1
174 -a1
175 -a2
175 -a2
176
176
177 # branch to parent:
177 # branch to parent:
178
178
179 % hg st -C --rev 2 --rev .
179 % hg st -C --rev 2 --rev .
180 M a
180 M a
181 R x/y
181 R x/y
182
182
183 % hg diff --git --rev 2 --rev .
183 % hg diff --git --rev 2 --rev .
184 diff --git a/a b/a
184 diff --git a/a b/a
185 --- a/a
185 --- a/a
186 +++ b/a
186 +++ b/a
187 @@ -1,3 +1,4 @@
187 @@ -1,3 +1,4 @@
188 a
188 a
189 -m1
189 -m1
190 -m2
190 -m2
191 +0
191 +0
192 +a1
192 +a1
193 +a2
193 +a2
194 diff --git a/x/y b/x/y
194 diff --git a/x/y b/x/y
195 deleted file mode 100644
195 deleted file mode 100644
196 --- a/x/y
196 --- a/x/y
197 +++ /dev/null
197 +++ /dev/null
198 @@ -1,1 +0,0 @@
198 @@ -1,1 +0,0 @@
199 -y1
199 -y1
200
200
201 # parent to branch:
201 # parent to branch:
202
202
203 % hg st -C --rev . --rev 2
203 % hg st -C --rev . --rev 2
204 M a
204 M a
205 A x/y
205 A x/y
206
206
207 % hg diff --git --rev . --rev 2
207 % hg diff --git --rev . --rev 2
208 diff --git a/a b/a
208 diff --git a/a b/a
209 --- a/a
209 --- a/a
210 +++ b/a
210 +++ b/a
211 @@ -1,4 +1,3 @@
211 @@ -1,4 +1,3 @@
212 a
212 a
213 -0
213 -0
214 -a1
214 -a1
215 -a2
215 -a2
216 +m1
216 +m1
217 +m2
217 +m2
218 diff --git a/x/y b/x/y
218 diff --git a/x/y b/x/y
219 new file mode 100644
219 new file mode 100644
220 --- /dev/null
220 --- /dev/null
221 +++ b/x/y
221 +++ b/x/y
222 @@ -0,0 +1,1 @@
222 @@ -0,0 +1,1 @@
223 +y1
223 +y1
224
224
225
225
226 copy in working dir
226 copy in working dir
227
227
228 $ tb "add a a1" "add a a2" "hg cp a b"
228 $ tb "add a a1" "add a a2" "hg cp a b"
229 % add a 1
229 % add a 1
230 % hg ci -m t0
230 % hg ci -m t0
231 created new head
231 created new head
232 % add a a1
232 % add a a1
233 % hg ci -m t1
233 % hg ci -m t1
234 % add a a2
234 % add a a2
235 % hg ci -m t2
235 % hg ci -m t2
236 % hg cp a b
236 % hg cp a b
237
237
238 # working to parent:
238 # working to parent:
239
239
240 % hg st -C
240 % hg st -C
241 A b
241 A b
242 a
242 a
243
243
244 % hg diff --git
244 % hg diff --git
245 diff --git a/a b/b
245 diff --git a/a b/b
246 copy from a
246 copy from a
247 copy to b
247 copy to b
248
248
249 # working to root:
249 # working to root:
250
250
251 % hg st -C --rev 0
251 % hg st -C --rev 0
252 M a
252 M a
253 A b
253 A b
254 a
254 a
255
255
256 % hg diff --git --rev 0
256 % hg diff --git --rev 0
257 diff --git a/a b/a
257 diff --git a/a b/a
258 --- a/a
258 --- a/a
259 +++ b/a
259 +++ b/a
260 @@ -1,1 +1,4 @@
260 @@ -1,1 +1,4 @@
261 a
261 a
262 +1
262 +1
263 +a1
263 +a1
264 +a2
264 +a2
265 diff --git a/a b/b
265 diff --git a/a b/b
266 copy from a
266 copy from a
267 copy to b
267 copy to b
268 --- a/a
268 --- a/a
269 +++ b/b
269 +++ b/b
270 @@ -1,1 +1,4 @@
270 @@ -1,1 +1,4 @@
271 a
271 a
272 +1
272 +1
273 +a1
273 +a1
274 +a2
274 +a2
275
275
276 # working to branch:
276 # working to branch:
277
277
278 % hg st -C --rev 2
278 % hg st -C --rev 2
279 M a
279 M a
280 A b
280 A b
281 a
281 a
282 R x/y
282 R x/y
283
283
284 % hg diff --git --rev 2
284 % hg diff --git --rev 2
285 diff --git a/a b/a
285 diff --git a/a b/a
286 --- a/a
286 --- a/a
287 +++ b/a
287 +++ b/a
288 @@ -1,3 +1,4 @@
288 @@ -1,3 +1,4 @@
289 a
289 a
290 -m1
290 -m1
291 -m2
291 -m2
292 +1
292 +1
293 +a1
293 +a1
294 +a2
294 +a2
295 diff --git a/a b/b
295 diff --git a/a b/b
296 copy from a
296 copy from a
297 copy to b
297 copy to b
298 --- a/a
298 --- a/a
299 +++ b/b
299 +++ b/b
300 @@ -1,3 +1,4 @@
300 @@ -1,3 +1,4 @@
301 a
301 a
302 -m1
302 -m1
303 -m2
303 -m2
304 +1
304 +1
305 +a1
305 +a1
306 +a2
306 +a2
307 diff --git a/x/y b/x/y
307 diff --git a/x/y b/x/y
308 deleted file mode 100644
308 deleted file mode 100644
309 --- a/x/y
309 --- a/x/y
310 +++ /dev/null
310 +++ /dev/null
311 @@ -1,1 +0,0 @@
311 @@ -1,1 +0,0 @@
312 -y1
312 -y1
313
313
314 # root to parent:
314 # root to parent:
315
315
316 % hg st -C --rev 0 --rev .
316 % hg st -C --rev 0 --rev .
317 M a
317 M a
318
318
319 % hg diff --git --rev 0 --rev .
319 % hg diff --git --rev 0 --rev .
320 diff --git a/a b/a
320 diff --git a/a b/a
321 --- a/a
321 --- a/a
322 +++ b/a
322 +++ b/a
323 @@ -1,1 +1,4 @@
323 @@ -1,1 +1,4 @@
324 a
324 a
325 +1
325 +1
326 +a1
326 +a1
327 +a2
327 +a2
328
328
329 # parent to root:
329 # parent to root:
330
330
331 % hg st -C --rev . --rev 0
331 % hg st -C --rev . --rev 0
332 M a
332 M a
333
333
334 % hg diff --git --rev . --rev 0
334 % hg diff --git --rev . --rev 0
335 diff --git a/a b/a
335 diff --git a/a b/a
336 --- a/a
336 --- a/a
337 +++ b/a
337 +++ b/a
338 @@ -1,4 +1,1 @@
338 @@ -1,4 +1,1 @@
339 a
339 a
340 -1
340 -1
341 -a1
341 -a1
342 -a2
342 -a2
343
343
344 # branch to parent:
344 # branch to parent:
345
345
346 % hg st -C --rev 2 --rev .
346 % hg st -C --rev 2 --rev .
347 M a
347 M a
348 R x/y
348 R x/y
349
349
350 % hg diff --git --rev 2 --rev .
350 % hg diff --git --rev 2 --rev .
351 diff --git a/a b/a
351 diff --git a/a b/a
352 --- a/a
352 --- a/a
353 +++ b/a
353 +++ b/a
354 @@ -1,3 +1,4 @@
354 @@ -1,3 +1,4 @@
355 a
355 a
356 -m1
356 -m1
357 -m2
357 -m2
358 +1
358 +1
359 +a1
359 +a1
360 +a2
360 +a2
361 diff --git a/x/y b/x/y
361 diff --git a/x/y b/x/y
362 deleted file mode 100644
362 deleted file mode 100644
363 --- a/x/y
363 --- a/x/y
364 +++ /dev/null
364 +++ /dev/null
365 @@ -1,1 +0,0 @@
365 @@ -1,1 +0,0 @@
366 -y1
366 -y1
367
367
368 # parent to branch:
368 # parent to branch:
369
369
370 % hg st -C --rev . --rev 2
370 % hg st -C --rev . --rev 2
371 M a
371 M a
372 A x/y
372 A x/y
373
373
374 % hg diff --git --rev . --rev 2
374 % hg diff --git --rev . --rev 2
375 diff --git a/a b/a
375 diff --git a/a b/a
376 --- a/a
376 --- a/a
377 +++ b/a
377 +++ b/a
378 @@ -1,4 +1,3 @@
378 @@ -1,4 +1,3 @@
379 a
379 a
380 -1
380 -1
381 -a1
381 -a1
382 -a2
382 -a2
383 +m1
383 +m1
384 +m2
384 +m2
385 diff --git a/x/y b/x/y
385 diff --git a/x/y b/x/y
386 new file mode 100644
386 new file mode 100644
387 --- /dev/null
387 --- /dev/null
388 +++ b/x/y
388 +++ b/x/y
389 @@ -0,0 +1,1 @@
389 @@ -0,0 +1,1 @@
390 +y1
390 +y1
391
391
392
392
393 single rename
393 single rename
394
394
395 $ tb "hg mv a b" "add b b1" "add b w"
395 $ tb "hg mv a b" "add b b1" "add b w"
396 % add a 2
396 % add a 2
397 % hg ci -m t0
397 % hg ci -m t0
398 created new head
398 created new head
399 % hg mv a b
399 % hg mv a b
400 % hg ci -m t1
400 % hg ci -m t1
401 % add b b1
401 % add b b1
402 % hg ci -m t2
402 % hg ci -m t2
403 % add b w
403 % add b w
404
404
405 # working to parent:
405 # working to parent:
406
406
407 % hg st -C
407 % hg st -C
408 M b
408 M b
409
409
410 % hg diff --git
410 % hg diff --git
411 diff --git a/b b/b
411 diff --git a/b b/b
412 --- a/b
412 --- a/b
413 +++ b/b
413 +++ b/b
414 @@ -1,3 +1,4 @@
414 @@ -1,3 +1,4 @@
415 a
415 a
416 2
416 2
417 b1
417 b1
418 +w
418 +w
419
419
420 # working to root:
420 # working to root:
421
421
422 % hg st -C --rev 0
422 % hg st -C --rev 0
423 A b
423 A b
424 a
424 a
425 R a
425 R a
426
426
427 % hg diff --git --rev 0
427 % hg diff --git --rev 0
428 diff --git a/a b/b
428 diff --git a/a b/b
429 rename from a
429 rename from a
430 rename to b
430 rename to b
431 --- a/a
431 --- a/a
432 +++ b/b
432 +++ b/b
433 @@ -1,1 +1,4 @@
433 @@ -1,1 +1,4 @@
434 a
434 a
435 +2
435 +2
436 +b1
436 +b1
437 +w
437 +w
438
438
439 # working to branch:
439 # working to branch:
440
440
441 % hg st -C --rev 2
441 % hg st -C --rev 2
442 A b
442 A b
443 a
443 a
444 R a
444 R a
445 R x/y
445 R x/y
446
446
447 % hg diff --git --rev 2
447 % hg diff --git --rev 2
448 diff --git a/a b/b
448 diff --git a/a b/b
449 rename from a
449 rename from a
450 rename to b
450 rename to b
451 --- a/a
451 --- a/a
452 +++ b/b
452 +++ b/b
453 @@ -1,3 +1,4 @@
453 @@ -1,3 +1,4 @@
454 a
454 a
455 -m1
455 -m1
456 -m2
456 -m2
457 +2
457 +2
458 +b1
458 +b1
459 +w
459 +w
460 diff --git a/x/y b/x/y
460 diff --git a/x/y b/x/y
461 deleted file mode 100644
461 deleted file mode 100644
462 --- a/x/y
462 --- a/x/y
463 +++ /dev/null
463 +++ /dev/null
464 @@ -1,1 +0,0 @@
464 @@ -1,1 +0,0 @@
465 -y1
465 -y1
466
466
467 # root to parent:
467 # root to parent:
468
468
469 % hg st -C --rev 0 --rev .
469 % hg st -C --rev 0 --rev .
470 A b
470 A b
471 a
471 a
472 R a
472 R a
473
473
474 % hg diff --git --rev 0 --rev .
474 % hg diff --git --rev 0 --rev .
475 diff --git a/a b/b
475 diff --git a/a b/b
476 rename from a
476 rename from a
477 rename to b
477 rename to b
478 --- a/a
478 --- a/a
479 +++ b/b
479 +++ b/b
480 @@ -1,1 +1,3 @@
480 @@ -1,1 +1,3 @@
481 a
481 a
482 +2
482 +2
483 +b1
483 +b1
484
484
485 # parent to root:
485 # parent to root:
486
486
487 % hg st -C --rev . --rev 0
487 % hg st -C --rev . --rev 0
488 A a
488 A a
489 b
489 b
490 R b
490 R b
491
491
492 % hg diff --git --rev . --rev 0
492 % hg diff --git --rev . --rev 0
493 diff --git a/b b/a
493 diff --git a/b b/a
494 rename from b
494 rename from b
495 rename to a
495 rename to a
496 --- a/b
496 --- a/b
497 +++ b/a
497 +++ b/a
498 @@ -1,3 +1,1 @@
498 @@ -1,3 +1,1 @@
499 a
499 a
500 -2
500 -2
501 -b1
501 -b1
502
502
503 # branch to parent:
503 # branch to parent:
504
504
505 % hg st -C --rev 2 --rev .
505 % hg st -C --rev 2 --rev .
506 A b
506 A b
507 a
507 a
508 R a
508 R a
509 R x/y
509 R x/y
510
510
511 % hg diff --git --rev 2 --rev .
511 % hg diff --git --rev 2 --rev .
512 diff --git a/a b/b
512 diff --git a/a b/b
513 rename from a
513 rename from a
514 rename to b
514 rename to b
515 --- a/a
515 --- a/a
516 +++ b/b
516 +++ b/b
517 @@ -1,3 +1,3 @@
517 @@ -1,3 +1,3 @@
518 a
518 a
519 -m1
519 -m1
520 -m2
520 -m2
521 +2
521 +2
522 +b1
522 +b1
523 diff --git a/x/y b/x/y
523 diff --git a/x/y b/x/y
524 deleted file mode 100644
524 deleted file mode 100644
525 --- a/x/y
525 --- a/x/y
526 +++ /dev/null
526 +++ /dev/null
527 @@ -1,1 +0,0 @@
527 @@ -1,1 +0,0 @@
528 -y1
528 -y1
529
529
530 # parent to branch:
530 # parent to branch:
531
531
532 % hg st -C --rev . --rev 2
532 % hg st -C --rev . --rev 2
533 A a
533 A a
534 b
534 b
535 A x/y
535 A x/y
536 R b
536 R b
537
537
538 % hg diff --git --rev . --rev 2
538 % hg diff --git --rev . --rev 2
539 diff --git a/b b/a
539 diff --git a/b b/a
540 rename from b
540 rename from b
541 rename to a
541 rename to a
542 --- a/b
542 --- a/b
543 +++ b/a
543 +++ b/a
544 @@ -1,3 +1,3 @@
544 @@ -1,3 +1,3 @@
545 a
545 a
546 -2
546 -2
547 -b1
547 -b1
548 +m1
548 +m1
549 +m2
549 +m2
550 diff --git a/x/y b/x/y
550 diff --git a/x/y b/x/y
551 new file mode 100644
551 new file mode 100644
552 --- /dev/null
552 --- /dev/null
553 +++ b/x/y
553 +++ b/x/y
554 @@ -0,0 +1,1 @@
554 @@ -0,0 +1,1 @@
555 +y1
555 +y1
556
556
557
557
558 single copy
558 single copy
559
559
560 $ tb "hg cp a b" "add b b1" "add a w"
560 $ tb "hg cp a b" "add b b1" "add a w"
561 % add a 3
561 % add a 3
562 % hg ci -m t0
562 % hg ci -m t0
563 created new head
563 created new head
564 % hg cp a b
564 % hg cp a b
565 % hg ci -m t1
565 % hg ci -m t1
566 % add b b1
566 % add b b1
567 % hg ci -m t2
567 % hg ci -m t2
568 % add a w
568 % add a w
569
569
570 # working to parent:
570 # working to parent:
571
571
572 % hg st -C
572 % hg st -C
573 M a
573 M a
574
574
575 % hg diff --git
575 % hg diff --git
576 diff --git a/a b/a
576 diff --git a/a b/a
577 --- a/a
577 --- a/a
578 +++ b/a
578 +++ b/a
579 @@ -1,2 +1,3 @@
579 @@ -1,2 +1,3 @@
580 a
580 a
581 3
581 3
582 +w
582 +w
583
583
584 # working to root:
584 # working to root:
585
585
586 % hg st -C --rev 0
586 % hg st -C --rev 0
587 M a
587 M a
588 A b
588 A b
589 a
589 a
590
590
591 % hg diff --git --rev 0
591 % hg diff --git --rev 0
592 diff --git a/a b/a
592 diff --git a/a b/a
593 --- a/a
593 --- a/a
594 +++ b/a
594 +++ b/a
595 @@ -1,1 +1,3 @@
595 @@ -1,1 +1,3 @@
596 a
596 a
597 +3
597 +3
598 +w
598 +w
599 diff --git a/a b/b
599 diff --git a/a b/b
600 copy from a
600 copy from a
601 copy to b
601 copy to b
602 --- a/a
602 --- a/a
603 +++ b/b
603 +++ b/b
604 @@ -1,1 +1,3 @@
604 @@ -1,1 +1,3 @@
605 a
605 a
606 +3
606 +3
607 +b1
607 +b1
608
608
609 # working to branch:
609 # working to branch:
610
610
611 % hg st -C --rev 2
611 % hg st -C --rev 2
612 M a
612 M a
613 A b
613 A b
614 a
614 a
615 R x/y
615 R x/y
616
616
617 % hg diff --git --rev 2
617 % hg diff --git --rev 2
618 diff --git a/a b/a
618 diff --git a/a b/a
619 --- a/a
619 --- a/a
620 +++ b/a
620 +++ b/a
621 @@ -1,3 +1,3 @@
621 @@ -1,3 +1,3 @@
622 a
622 a
623 -m1
623 -m1
624 -m2
624 -m2
625 +3
625 +3
626 +w
626 +w
627 diff --git a/a b/b
627 diff --git a/a b/b
628 copy from a
628 copy from a
629 copy to b
629 copy to b
630 --- a/a
630 --- a/a
631 +++ b/b
631 +++ b/b
632 @@ -1,3 +1,3 @@
632 @@ -1,3 +1,3 @@
633 a
633 a
634 -m1
634 -m1
635 -m2
635 -m2
636 +3
636 +3
637 +b1
637 +b1
638 diff --git a/x/y b/x/y
638 diff --git a/x/y b/x/y
639 deleted file mode 100644
639 deleted file mode 100644
640 --- a/x/y
640 --- a/x/y
641 +++ /dev/null
641 +++ /dev/null
642 @@ -1,1 +0,0 @@
642 @@ -1,1 +0,0 @@
643 -y1
643 -y1
644
644
645 # root to parent:
645 # root to parent:
646
646
647 % hg st -C --rev 0 --rev .
647 % hg st -C --rev 0 --rev .
648 M a
648 M a
649 A b
649 A b
650 a
650 a
651
651
652 % hg diff --git --rev 0 --rev .
652 % hg diff --git --rev 0 --rev .
653 diff --git a/a b/a
653 diff --git a/a b/a
654 --- a/a
654 --- a/a
655 +++ b/a
655 +++ b/a
656 @@ -1,1 +1,2 @@
656 @@ -1,1 +1,2 @@
657 a
657 a
658 +3
658 +3
659 diff --git a/a b/b
659 diff --git a/a b/b
660 copy from a
660 copy from a
661 copy to b
661 copy to b
662 --- a/a
662 --- a/a
663 +++ b/b
663 +++ b/b
664 @@ -1,1 +1,3 @@
664 @@ -1,1 +1,3 @@
665 a
665 a
666 +3
666 +3
667 +b1
667 +b1
668
668
669 # parent to root:
669 # parent to root:
670
670
671 % hg st -C --rev . --rev 0
671 % hg st -C --rev . --rev 0
672 M a
672 M a
673 b
673 b
674 R b
674 R b
675
675
676 % hg diff --git --rev . --rev 0
676 % hg diff --git --rev . --rev 0
677 diff --git a/a b/a
677 diff --git a/a b/a
678 --- a/a
678 --- a/a
679 +++ b/a
679 +++ b/a
680 @@ -1,2 +1,1 @@
680 @@ -1,2 +1,1 @@
681 a
681 a
682 -3
682 -3
683 diff --git a/b b/b
683 diff --git a/b b/b
684 deleted file mode 100644
684 deleted file mode 100644
685 --- a/b
685 --- a/b
686 +++ /dev/null
686 +++ /dev/null
687 @@ -1,3 +0,0 @@
687 @@ -1,3 +0,0 @@
688 -a
688 -a
689 -3
689 -3
690 -b1
690 -b1
691
691
692 # branch to parent:
692 # branch to parent:
693
693
694 % hg st -C --rev 2 --rev .
694 % hg st -C --rev 2 --rev .
695 M a
695 M a
696 A b
696 A b
697 a
697 a
698 R x/y
698 R x/y
699
699
700 % hg diff --git --rev 2 --rev .
700 % hg diff --git --rev 2 --rev .
701 diff --git a/a b/a
701 diff --git a/a b/a
702 --- a/a
702 --- a/a
703 +++ b/a
703 +++ b/a
704 @@ -1,3 +1,2 @@
704 @@ -1,3 +1,2 @@
705 a
705 a
706 -m1
706 -m1
707 -m2
707 -m2
708 +3
708 +3
709 diff --git a/a b/b
709 diff --git a/a b/b
710 copy from a
710 copy from a
711 copy to b
711 copy to b
712 --- a/a
712 --- a/a
713 +++ b/b
713 +++ b/b
714 @@ -1,3 +1,3 @@
714 @@ -1,3 +1,3 @@
715 a
715 a
716 -m1
716 -m1
717 -m2
717 -m2
718 +3
718 +3
719 +b1
719 +b1
720 diff --git a/x/y b/x/y
720 diff --git a/x/y b/x/y
721 deleted file mode 100644
721 deleted file mode 100644
722 --- a/x/y
722 --- a/x/y
723 +++ /dev/null
723 +++ /dev/null
724 @@ -1,1 +0,0 @@
724 @@ -1,1 +0,0 @@
725 -y1
725 -y1
726
726
727 # parent to branch:
727 # parent to branch:
728
728
729 % hg st -C --rev . --rev 2
729 % hg st -C --rev . --rev 2
730 M a
730 M a
731 b
731 b
732 A x/y
732 A x/y
733 R b
733 R b
734
734
735 % hg diff --git --rev . --rev 2
735 % hg diff --git --rev . --rev 2
736 diff --git a/a b/a
736 diff --git a/a b/a
737 --- a/a
737 --- a/a
738 +++ b/a
738 +++ b/a
739 @@ -1,2 +1,3 @@
739 @@ -1,2 +1,3 @@
740 a
740 a
741 -3
741 -3
742 +m1
742 +m1
743 +m2
743 +m2
744 diff --git a/b b/b
744 diff --git a/b b/b
745 deleted file mode 100644
745 deleted file mode 100644
746 --- a/b
746 --- a/b
747 +++ /dev/null
747 +++ /dev/null
748 @@ -1,3 +0,0 @@
748 @@ -1,3 +0,0 @@
749 -a
749 -a
750 -3
750 -3
751 -b1
751 -b1
752 diff --git a/x/y b/x/y
752 diff --git a/x/y b/x/y
753 new file mode 100644
753 new file mode 100644
754 --- /dev/null
754 --- /dev/null
755 +++ b/x/y
755 +++ b/x/y
756 @@ -0,0 +1,1 @@
756 @@ -0,0 +1,1 @@
757 +y1
757 +y1
758
758
759
759
760 rename chain
760 rename chain
761
761
762 $ tb "hg mv a b" "hg mv b c" "hg mv c d"
762 $ tb "hg mv a b" "hg mv b c" "hg mv c d"
763 % add a 4
763 % add a 4
764 % hg ci -m t0
764 % hg ci -m t0
765 created new head
765 created new head
766 % hg mv a b
766 % hg mv a b
767 % hg ci -m t1
767 % hg ci -m t1
768 % hg mv b c
768 % hg mv b c
769 % hg ci -m t2
769 % hg ci -m t2
770 % hg mv c d
770 % hg mv c d
771
771
772 # working to parent:
772 # working to parent:
773
773
774 % hg st -C
774 % hg st -C
775 A d
775 A d
776 c
776 c
777 R c
777 R c
778
778
779 % hg diff --git
779 % hg diff --git
780 diff --git a/c b/d
780 diff --git a/c b/d
781 rename from c
781 rename from c
782 rename to d
782 rename to d
783
783
784 # working to root:
784 # working to root:
785
785
786 % hg st -C --rev 0
786 % hg st -C --rev 0
787 A d
787 A d
788 a
788 a
789 R a
789 R a
790
790
791 % hg diff --git --rev 0
791 % hg diff --git --rev 0
792 diff --git a/a b/d
792 diff --git a/a b/d
793 rename from a
793 rename from a
794 rename to d
794 rename to d
795 --- a/a
795 --- a/a
796 +++ b/d
796 +++ b/d
797 @@ -1,1 +1,2 @@
797 @@ -1,1 +1,2 @@
798 a
798 a
799 +4
799 +4
800
800
801 # working to branch:
801 # working to branch:
802
802
803 % hg st -C --rev 2
803 % hg st -C --rev 2
804 A d
804 A d
805 a
805 a
806 R a
806 R a
807 R x/y
807 R x/y
808
808
809 % hg diff --git --rev 2
809 % hg diff --git --rev 2
810 diff --git a/a b/d
810 diff --git a/a b/d
811 rename from a
811 rename from a
812 rename to d
812 rename to d
813 --- a/a
813 --- a/a
814 +++ b/d
814 +++ b/d
815 @@ -1,3 +1,2 @@
815 @@ -1,3 +1,2 @@
816 a
816 a
817 -m1
817 -m1
818 -m2
818 -m2
819 +4
819 +4
820 diff --git a/x/y b/x/y
820 diff --git a/x/y b/x/y
821 deleted file mode 100644
821 deleted file mode 100644
822 --- a/x/y
822 --- a/x/y
823 +++ /dev/null
823 +++ /dev/null
824 @@ -1,1 +0,0 @@
824 @@ -1,1 +0,0 @@
825 -y1
825 -y1
826
826
827 # root to parent:
827 # root to parent:
828
828
829 % hg st -C --rev 0 --rev .
829 % hg st -C --rev 0 --rev .
830 A c
830 A c
831 a
831 a
832 R a
832 R a
833
833
834 % hg diff --git --rev 0 --rev .
834 % hg diff --git --rev 0 --rev .
835 diff --git a/a b/c
835 diff --git a/a b/c
836 rename from a
836 rename from a
837 rename to c
837 rename to c
838 --- a/a
838 --- a/a
839 +++ b/c
839 +++ b/c
840 @@ -1,1 +1,2 @@
840 @@ -1,1 +1,2 @@
841 a
841 a
842 +4
842 +4
843
843
844 # parent to root:
844 # parent to root:
845
845
846 % hg st -C --rev . --rev 0
846 % hg st -C --rev . --rev 0
847 A a
847 A a
848 c
848 c
849 R c
849 R c
850
850
851 % hg diff --git --rev . --rev 0
851 % hg diff --git --rev . --rev 0
852 diff --git a/c b/a
852 diff --git a/c b/a
853 rename from c
853 rename from c
854 rename to a
854 rename to a
855 --- a/c
855 --- a/c
856 +++ b/a
856 +++ b/a
857 @@ -1,2 +1,1 @@
857 @@ -1,2 +1,1 @@
858 a
858 a
859 -4
859 -4
860
860
861 # branch to parent:
861 # branch to parent:
862
862
863 % hg st -C --rev 2 --rev .
863 % hg st -C --rev 2 --rev .
864 A c
864 A c
865 a
865 a
866 R a
866 R a
867 R x/y
867 R x/y
868
868
869 % hg diff --git --rev 2 --rev .
869 % hg diff --git --rev 2 --rev .
870 diff --git a/a b/c
870 diff --git a/a b/c
871 rename from a
871 rename from a
872 rename to c
872 rename to c
873 --- a/a
873 --- a/a
874 +++ b/c
874 +++ b/c
875 @@ -1,3 +1,2 @@
875 @@ -1,3 +1,2 @@
876 a
876 a
877 -m1
877 -m1
878 -m2
878 -m2
879 +4
879 +4
880 diff --git a/x/y b/x/y
880 diff --git a/x/y b/x/y
881 deleted file mode 100644
881 deleted file mode 100644
882 --- a/x/y
882 --- a/x/y
883 +++ /dev/null
883 +++ /dev/null
884 @@ -1,1 +0,0 @@
884 @@ -1,1 +0,0 @@
885 -y1
885 -y1
886
886
887 # parent to branch:
887 # parent to branch:
888
888
889 % hg st -C --rev . --rev 2
889 % hg st -C --rev . --rev 2
890 A a
890 A a
891 c
891 c
892 A x/y
892 A x/y
893 R c
893 R c
894
894
895 % hg diff --git --rev . --rev 2
895 % hg diff --git --rev . --rev 2
896 diff --git a/c b/a
896 diff --git a/c b/a
897 rename from c
897 rename from c
898 rename to a
898 rename to a
899 --- a/c
899 --- a/c
900 +++ b/a
900 +++ b/a
901 @@ -1,2 +1,3 @@
901 @@ -1,2 +1,3 @@
902 a
902 a
903 -4
903 -4
904 +m1
904 +m1
905 +m2
905 +m2
906 diff --git a/x/y b/x/y
906 diff --git a/x/y b/x/y
907 new file mode 100644
907 new file mode 100644
908 --- /dev/null
908 --- /dev/null
909 +++ b/x/y
909 +++ b/x/y
910 @@ -0,0 +1,1 @@
910 @@ -0,0 +1,1 @@
911 +y1
911 +y1
912
912
913
913
914 copy chain
914 copy chain
915
915
916 $ tb "hg cp a b" "hg cp b c" "hg cp c d"
916 $ tb "hg cp a b" "hg cp b c" "hg cp c d"
917 % add a 5
917 % add a 5
918 % hg ci -m t0
918 % hg ci -m t0
919 created new head
919 created new head
920 % hg cp a b
920 % hg cp a b
921 % hg ci -m t1
921 % hg ci -m t1
922 % hg cp b c
922 % hg cp b c
923 % hg ci -m t2
923 % hg ci -m t2
924 % hg cp c d
924 % hg cp c d
925
925
926 # working to parent:
926 # working to parent:
927
927
928 % hg st -C
928 % hg st -C
929 A d
929 A d
930 c
930 c
931
931
932 % hg diff --git
932 % hg diff --git
933 diff --git a/c b/d
933 diff --git a/c b/d
934 copy from c
934 copy from c
935 copy to d
935 copy to d
936
936
937 # working to root:
937 # working to root:
938
938
939 % hg st -C --rev 0
939 % hg st -C --rev 0
940 M a
940 M a
941 A b
941 A b
942 a
942 a
943 A c
943 A c
944 a
944 a
945 A d
945 A d
946 a
946 a
947
947
948 % hg diff --git --rev 0
948 % hg diff --git --rev 0
949 diff --git a/a b/a
949 diff --git a/a b/a
950 --- a/a
950 --- a/a
951 +++ b/a
951 +++ b/a
952 @@ -1,1 +1,2 @@
952 @@ -1,1 +1,2 @@
953 a
953 a
954 +5
954 +5
955 diff --git a/a b/b
955 diff --git a/a b/b
956 copy from a
956 copy from a
957 copy to b
957 copy to b
958 --- a/a
958 --- a/a
959 +++ b/b
959 +++ b/b
960 @@ -1,1 +1,2 @@
960 @@ -1,1 +1,2 @@
961 a
961 a
962 +5
962 +5
963 diff --git a/a b/c
963 diff --git a/a b/c
964 copy from a
964 copy from a
965 copy to c
965 copy to c
966 --- a/a
966 --- a/a
967 +++ b/c
967 +++ b/c
968 @@ -1,1 +1,2 @@
968 @@ -1,1 +1,2 @@
969 a
969 a
970 +5
970 +5
971 diff --git a/a b/d
971 diff --git a/a b/d
972 copy from a
972 copy from a
973 copy to d
973 copy to d
974 --- a/a
974 --- a/a
975 +++ b/d
975 +++ b/d
976 @@ -1,1 +1,2 @@
976 @@ -1,1 +1,2 @@
977 a
977 a
978 +5
978 +5
979
979
980 # working to branch:
980 # working to branch:
981
981
982 % hg st -C --rev 2
982 % hg st -C --rev 2
983 M a
983 M a
984 A b
984 A b
985 a
985 a
986 A c
986 A c
987 a
987 a
988 A d
988 A d
989 a
989 a
990 R x/y
990 R x/y
991
991
992 % hg diff --git --rev 2
992 % hg diff --git --rev 2
993 diff --git a/a b/a
993 diff --git a/a b/a
994 --- a/a
994 --- a/a
995 +++ b/a
995 +++ b/a
996 @@ -1,3 +1,2 @@
996 @@ -1,3 +1,2 @@
997 a
997 a
998 -m1
998 -m1
999 -m2
999 -m2
1000 +5
1000 +5
1001 diff --git a/a b/b
1001 diff --git a/a b/b
1002 copy from a
1002 copy from a
1003 copy to b
1003 copy to b
1004 --- a/a
1004 --- a/a
1005 +++ b/b
1005 +++ b/b
1006 @@ -1,3 +1,2 @@
1006 @@ -1,3 +1,2 @@
1007 a
1007 a
1008 -m1
1008 -m1
1009 -m2
1009 -m2
1010 +5
1010 +5
1011 diff --git a/a b/c
1011 diff --git a/a b/c
1012 copy from a
1012 copy from a
1013 copy to c
1013 copy to c
1014 --- a/a
1014 --- a/a
1015 +++ b/c
1015 +++ b/c
1016 @@ -1,3 +1,2 @@
1016 @@ -1,3 +1,2 @@
1017 a
1017 a
1018 -m1
1018 -m1
1019 -m2
1019 -m2
1020 +5
1020 +5
1021 diff --git a/a b/d
1021 diff --git a/a b/d
1022 copy from a
1022 copy from a
1023 copy to d
1023 copy to d
1024 --- a/a
1024 --- a/a
1025 +++ b/d
1025 +++ b/d
1026 @@ -1,3 +1,2 @@
1026 @@ -1,3 +1,2 @@
1027 a
1027 a
1028 -m1
1028 -m1
1029 -m2
1029 -m2
1030 +5
1030 +5
1031 diff --git a/x/y b/x/y
1031 diff --git a/x/y b/x/y
1032 deleted file mode 100644
1032 deleted file mode 100644
1033 --- a/x/y
1033 --- a/x/y
1034 +++ /dev/null
1034 +++ /dev/null
1035 @@ -1,1 +0,0 @@
1035 @@ -1,1 +0,0 @@
1036 -y1
1036 -y1
1037
1037
1038 # root to parent:
1038 # root to parent:
1039
1039
1040 % hg st -C --rev 0 --rev .
1040 % hg st -C --rev 0 --rev .
1041 M a
1041 M a
1042 A b
1042 A b
1043 a
1043 a
1044 A c
1044 A c
1045 a
1045 a
1046
1046
1047 % hg diff --git --rev 0 --rev .
1047 % hg diff --git --rev 0 --rev .
1048 diff --git a/a b/a
1048 diff --git a/a b/a
1049 --- a/a
1049 --- a/a
1050 +++ b/a
1050 +++ b/a
1051 @@ -1,1 +1,2 @@
1051 @@ -1,1 +1,2 @@
1052 a
1052 a
1053 +5
1053 +5
1054 diff --git a/a b/b
1054 diff --git a/a b/b
1055 copy from a
1055 copy from a
1056 copy to b
1056 copy to b
1057 --- a/a
1057 --- a/a
1058 +++ b/b
1058 +++ b/b
1059 @@ -1,1 +1,2 @@
1059 @@ -1,1 +1,2 @@
1060 a
1060 a
1061 +5
1061 +5
1062 diff --git a/a b/c
1062 diff --git a/a b/c
1063 copy from a
1063 copy from a
1064 copy to c
1064 copy to c
1065 --- a/a
1065 --- a/a
1066 +++ b/c
1066 +++ b/c
1067 @@ -1,1 +1,2 @@
1067 @@ -1,1 +1,2 @@
1068 a
1068 a
1069 +5
1069 +5
1070
1070
1071 # parent to root:
1071 # parent to root:
1072
1072
1073 % hg st -C --rev . --rev 0
1073 % hg st -C --rev . --rev 0
1074 M a
1074 M a
1075 b
1075 b
1076 R b
1076 R b
1077 R c
1077 R c
1078
1078
1079 % hg diff --git --rev . --rev 0
1079 % hg diff --git --rev . --rev 0
1080 diff --git a/a b/a
1080 diff --git a/a b/a
1081 --- a/a
1081 --- a/a
1082 +++ b/a
1082 +++ b/a
1083 @@ -1,2 +1,1 @@
1083 @@ -1,2 +1,1 @@
1084 a
1084 a
1085 -5
1085 -5
1086 diff --git a/b b/b
1086 diff --git a/b b/b
1087 deleted file mode 100644
1087 deleted file mode 100644
1088 --- a/b
1088 --- a/b
1089 +++ /dev/null
1089 +++ /dev/null
1090 @@ -1,2 +0,0 @@
1090 @@ -1,2 +0,0 @@
1091 -a
1091 -a
1092 -5
1092 -5
1093 diff --git a/c b/c
1093 diff --git a/c b/c
1094 deleted file mode 100644
1094 deleted file mode 100644
1095 --- a/c
1095 --- a/c
1096 +++ /dev/null
1096 +++ /dev/null
1097 @@ -1,2 +0,0 @@
1097 @@ -1,2 +0,0 @@
1098 -a
1098 -a
1099 -5
1099 -5
1100
1100
1101 # branch to parent:
1101 # branch to parent:
1102
1102
1103 % hg st -C --rev 2 --rev .
1103 % hg st -C --rev 2 --rev .
1104 M a
1104 M a
1105 A b
1105 A b
1106 a
1106 a
1107 A c
1107 A c
1108 a
1108 a
1109 R x/y
1109 R x/y
1110
1110
1111 % hg diff --git --rev 2 --rev .
1111 % hg diff --git --rev 2 --rev .
1112 diff --git a/a b/a
1112 diff --git a/a b/a
1113 --- a/a
1113 --- a/a
1114 +++ b/a
1114 +++ b/a
1115 @@ -1,3 +1,2 @@
1115 @@ -1,3 +1,2 @@
1116 a
1116 a
1117 -m1
1117 -m1
1118 -m2
1118 -m2
1119 +5
1119 +5
1120 diff --git a/a b/b
1120 diff --git a/a b/b
1121 copy from a
1121 copy from a
1122 copy to b
1122 copy to b
1123 --- a/a
1123 --- a/a
1124 +++ b/b
1124 +++ b/b
1125 @@ -1,3 +1,2 @@
1125 @@ -1,3 +1,2 @@
1126 a
1126 a
1127 -m1
1127 -m1
1128 -m2
1128 -m2
1129 +5
1129 +5
1130 diff --git a/a b/c
1130 diff --git a/a b/c
1131 copy from a
1131 copy from a
1132 copy to c
1132 copy to c
1133 --- a/a
1133 --- a/a
1134 +++ b/c
1134 +++ b/c
1135 @@ -1,3 +1,2 @@
1135 @@ -1,3 +1,2 @@
1136 a
1136 a
1137 -m1
1137 -m1
1138 -m2
1138 -m2
1139 +5
1139 +5
1140 diff --git a/x/y b/x/y
1140 diff --git a/x/y b/x/y
1141 deleted file mode 100644
1141 deleted file mode 100644
1142 --- a/x/y
1142 --- a/x/y
1143 +++ /dev/null
1143 +++ /dev/null
1144 @@ -1,1 +0,0 @@
1144 @@ -1,1 +0,0 @@
1145 -y1
1145 -y1
1146
1146
1147 # parent to branch:
1147 # parent to branch:
1148
1148
1149 % hg st -C --rev . --rev 2
1149 % hg st -C --rev . --rev 2
1150 M a
1150 M a
1151 b
1151 b
1152 A x/y
1152 A x/y
1153 R b
1153 R b
1154 R c
1154 R c
1155
1155
1156 % hg diff --git --rev . --rev 2
1156 % hg diff --git --rev . --rev 2
1157 diff --git a/a b/a
1157 diff --git a/a b/a
1158 --- a/a
1158 --- a/a
1159 +++ b/a
1159 +++ b/a
1160 @@ -1,2 +1,3 @@
1160 @@ -1,2 +1,3 @@
1161 a
1161 a
1162 -5
1162 -5
1163 +m1
1163 +m1
1164 +m2
1164 +m2
1165 diff --git a/b b/b
1165 diff --git a/b b/b
1166 deleted file mode 100644
1166 deleted file mode 100644
1167 --- a/b
1167 --- a/b
1168 +++ /dev/null
1168 +++ /dev/null
1169 @@ -1,2 +0,0 @@
1169 @@ -1,2 +0,0 @@
1170 -a
1170 -a
1171 -5
1171 -5
1172 diff --git a/c b/c
1172 diff --git a/c b/c
1173 deleted file mode 100644
1173 deleted file mode 100644
1174 --- a/c
1174 --- a/c
1175 +++ /dev/null
1175 +++ /dev/null
1176 @@ -1,2 +0,0 @@
1176 @@ -1,2 +0,0 @@
1177 -a
1177 -a
1178 -5
1178 -5
1179 diff --git a/x/y b/x/y
1179 diff --git a/x/y b/x/y
1180 new file mode 100644
1180 new file mode 100644
1181 --- /dev/null
1181 --- /dev/null
1182 +++ b/x/y
1182 +++ b/x/y
1183 @@ -0,0 +1,1 @@
1183 @@ -0,0 +1,1 @@
1184 +y1
1184 +y1
1185
1185
1186
1186
1187 circular rename
1187 circular rename
1188
1188
1189 $ tb "add a a1" "hg mv a b" "hg mv b a"
1189 $ tb "add a a1" "hg mv a b" "hg mv b a"
1190 % add a 6
1190 % add a 6
1191 % hg ci -m t0
1191 % hg ci -m t0
1192 created new head
1192 created new head
1193 % add a a1
1193 % add a a1
1194 % hg ci -m t1
1194 % hg ci -m t1
1195 % hg mv a b
1195 % hg mv a b
1196 % hg ci -m t2
1196 % hg ci -m t2
1197 % hg mv b a
1197 % hg mv b a
1198
1198
1199 # working to parent:
1199 # working to parent:
1200
1200
1201 % hg st -C
1201 % hg st -C
1202 A a
1202 A a
1203 b
1203 b
1204 R b
1204 R b
1205
1205
1206 % hg diff --git
1206 % hg diff --git
1207 diff --git a/b b/a
1207 diff --git a/b b/a
1208 rename from b
1208 rename from b
1209 rename to a
1209 rename to a
1210
1210
1211 # working to root:
1211 # working to root:
1212
1212
1213 % hg st -C --rev 0
1213 % hg st -C --rev 0
1214 M a
1214 M a
1215
1215
1216 % hg diff --git --rev 0
1216 % hg diff --git --rev 0
1217 diff --git a/a b/a
1217 diff --git a/a b/a
1218 --- a/a
1218 --- a/a
1219 +++ b/a
1219 +++ b/a
1220 @@ -1,1 +1,3 @@
1220 @@ -1,1 +1,3 @@
1221 a
1221 a
1222 +6
1222 +6
1223 +a1
1223 +a1
1224
1224
1225 # working to branch:
1225 # working to branch:
1226
1226
1227 % hg st -C --rev 2
1227 % hg st -C --rev 2
1228 M a
1228 M a
1229 R x/y
1229 R x/y
1230
1230
1231 % hg diff --git --rev 2
1231 % hg diff --git --rev 2
1232 diff --git a/a b/a
1232 diff --git a/a b/a
1233 --- a/a
1233 --- a/a
1234 +++ b/a
1234 +++ b/a
1235 @@ -1,3 +1,3 @@
1235 @@ -1,3 +1,3 @@
1236 a
1236 a
1237 -m1
1237 -m1
1238 -m2
1238 -m2
1239 +6
1239 +6
1240 +a1
1240 +a1
1241 diff --git a/x/y b/x/y
1241 diff --git a/x/y b/x/y
1242 deleted file mode 100644
1242 deleted file mode 100644
1243 --- a/x/y
1243 --- a/x/y
1244 +++ /dev/null
1244 +++ /dev/null
1245 @@ -1,1 +0,0 @@
1245 @@ -1,1 +0,0 @@
1246 -y1
1246 -y1
1247
1247
1248 # root to parent:
1248 # root to parent:
1249
1249
1250 % hg st -C --rev 0 --rev .
1250 % hg st -C --rev 0 --rev .
1251 A b
1251 A b
1252 a
1252 a
1253 R a
1253 R a
1254
1254
1255 % hg diff --git --rev 0 --rev .
1255 % hg diff --git --rev 0 --rev .
1256 diff --git a/a b/b
1256 diff --git a/a b/b
1257 rename from a
1257 rename from a
1258 rename to b
1258 rename to b
1259 --- a/a
1259 --- a/a
1260 +++ b/b
1260 +++ b/b
1261 @@ -1,1 +1,3 @@
1261 @@ -1,1 +1,3 @@
1262 a
1262 a
1263 +6
1263 +6
1264 +a1
1264 +a1
1265
1265
1266 # parent to root:
1266 # parent to root:
1267
1267
1268 % hg st -C --rev . --rev 0
1268 % hg st -C --rev . --rev 0
1269 A a
1269 A a
1270 b
1270 b
1271 R b
1271 R b
1272
1272
1273 % hg diff --git --rev . --rev 0
1273 % hg diff --git --rev . --rev 0
1274 diff --git a/b b/a
1274 diff --git a/b b/a
1275 rename from b
1275 rename from b
1276 rename to a
1276 rename to a
1277 --- a/b
1277 --- a/b
1278 +++ b/a
1278 +++ b/a
1279 @@ -1,3 +1,1 @@
1279 @@ -1,3 +1,1 @@
1280 a
1280 a
1281 -6
1281 -6
1282 -a1
1282 -a1
1283
1283
1284 # branch to parent:
1284 # branch to parent:
1285
1285
1286 % hg st -C --rev 2 --rev .
1286 % hg st -C --rev 2 --rev .
1287 A b
1287 A b
1288 a
1288 a
1289 R a
1289 R a
1290 R x/y
1290 R x/y
1291
1291
1292 % hg diff --git --rev 2 --rev .
1292 % hg diff --git --rev 2 --rev .
1293 diff --git a/a b/b
1293 diff --git a/a b/b
1294 rename from a
1294 rename from a
1295 rename to b
1295 rename to b
1296 --- a/a
1296 --- a/a
1297 +++ b/b
1297 +++ b/b
1298 @@ -1,3 +1,3 @@
1298 @@ -1,3 +1,3 @@
1299 a
1299 a
1300 -m1
1300 -m1
1301 -m2
1301 -m2
1302 +6
1302 +6
1303 +a1
1303 +a1
1304 diff --git a/x/y b/x/y
1304 diff --git a/x/y b/x/y
1305 deleted file mode 100644
1305 deleted file mode 100644
1306 --- a/x/y
1306 --- a/x/y
1307 +++ /dev/null
1307 +++ /dev/null
1308 @@ -1,1 +0,0 @@
1308 @@ -1,1 +0,0 @@
1309 -y1
1309 -y1
1310
1310
1311 # parent to branch:
1311 # parent to branch:
1312
1312
1313 % hg st -C --rev . --rev 2
1313 % hg st -C --rev . --rev 2
1314 A a
1314 A a
1315 b
1315 b
1316 A x/y
1316 A x/y
1317 R b
1317 R b
1318
1318
1319 % hg diff --git --rev . --rev 2
1319 % hg diff --git --rev . --rev 2
1320 diff --git a/b b/a
1320 diff --git a/b b/a
1321 rename from b
1321 rename from b
1322 rename to a
1322 rename to a
1323 --- a/b
1323 --- a/b
1324 +++ b/a
1324 +++ b/a
1325 @@ -1,3 +1,3 @@
1325 @@ -1,3 +1,3 @@
1326 a
1326 a
1327 -6
1327 -6
1328 -a1
1328 -a1
1329 +m1
1329 +m1
1330 +m2
1330 +m2
1331 diff --git a/x/y b/x/y
1331 diff --git a/x/y b/x/y
1332 new file mode 100644
1332 new file mode 100644
1333 --- /dev/null
1333 --- /dev/null
1334 +++ b/x/y
1334 +++ b/x/y
1335 @@ -0,0 +1,1 @@
1335 @@ -0,0 +1,1 @@
1336 +y1
1336 +y1
1337
1337
1338
1338
1339 directory move
1339 directory move
1340
1340
1341 $ tb "hg mv x y" "add y/x x1" "add y/x x2"
1341 $ tb "hg mv x y" "add y/x x1" "add y/x x2"
1342 % add a 7
1342 % add a 7
1343 % hg ci -m t0
1343 % hg ci -m t0
1344 created new head
1344 created new head
1345 % hg mv x y
1345 % hg mv x y
1346 moving x/x to y/x
1346 moving x/x to y/x (glob)
1347 % hg ci -m t1
1347 % hg ci -m t1
1348 % add y/x x1
1348 % add y/x x1
1349 % hg ci -m t2
1349 % hg ci -m t2
1350 % add y/x x2
1350 % add y/x x2
1351
1351
1352 # working to parent:
1352 # working to parent:
1353
1353
1354 % hg st -C
1354 % hg st -C
1355 M y/x
1355 M y/x
1356
1356
1357 % hg diff --git
1357 % hg diff --git
1358 diff --git a/y/x b/y/x
1358 diff --git a/y/x b/y/x
1359 --- a/y/x
1359 --- a/y/x
1360 +++ b/y/x
1360 +++ b/y/x
1361 @@ -1,2 +1,3 @@
1361 @@ -1,2 +1,3 @@
1362 x
1362 x
1363 x1
1363 x1
1364 +x2
1364 +x2
1365
1365
1366 # working to root:
1366 # working to root:
1367
1367
1368 % hg st -C --rev 0
1368 % hg st -C --rev 0
1369 M a
1369 M a
1370 A y/x
1370 A y/x
1371 x/x
1371 x/x
1372 R x/x
1372 R x/x
1373
1373
1374 % hg diff --git --rev 0
1374 % hg diff --git --rev 0
1375 diff --git a/a b/a
1375 diff --git a/a b/a
1376 --- a/a
1376 --- a/a
1377 +++ b/a
1377 +++ b/a
1378 @@ -1,1 +1,2 @@
1378 @@ -1,1 +1,2 @@
1379 a
1379 a
1380 +7
1380 +7
1381 diff --git a/x/x b/y/x
1381 diff --git a/x/x b/y/x
1382 rename from x/x
1382 rename from x/x
1383 rename to y/x
1383 rename to y/x
1384 --- a/x/x
1384 --- a/x/x
1385 +++ b/y/x
1385 +++ b/y/x
1386 @@ -1,1 +1,3 @@
1386 @@ -1,1 +1,3 @@
1387 x
1387 x
1388 +x1
1388 +x1
1389 +x2
1389 +x2
1390
1390
1391 # working to branch:
1391 # working to branch:
1392
1392
1393 % hg st -C --rev 2
1393 % hg st -C --rev 2
1394 M a
1394 M a
1395 A y/x
1395 A y/x
1396 x/x
1396 x/x
1397 R x/x
1397 R x/x
1398 R x/y
1398 R x/y
1399
1399
1400 % hg diff --git --rev 2
1400 % hg diff --git --rev 2
1401 diff --git a/a b/a
1401 diff --git a/a b/a
1402 --- a/a
1402 --- a/a
1403 +++ b/a
1403 +++ b/a
1404 @@ -1,3 +1,2 @@
1404 @@ -1,3 +1,2 @@
1405 a
1405 a
1406 -m1
1406 -m1
1407 -m2
1407 -m2
1408 +7
1408 +7
1409 diff --git a/x/y b/x/y
1409 diff --git a/x/y b/x/y
1410 deleted file mode 100644
1410 deleted file mode 100644
1411 --- a/x/y
1411 --- a/x/y
1412 +++ /dev/null
1412 +++ /dev/null
1413 @@ -1,1 +0,0 @@
1413 @@ -1,1 +0,0 @@
1414 -y1
1414 -y1
1415 diff --git a/x/x b/y/x
1415 diff --git a/x/x b/y/x
1416 rename from x/x
1416 rename from x/x
1417 rename to y/x
1417 rename to y/x
1418 --- a/x/x
1418 --- a/x/x
1419 +++ b/y/x
1419 +++ b/y/x
1420 @@ -1,1 +1,3 @@
1420 @@ -1,1 +1,3 @@
1421 x
1421 x
1422 +x1
1422 +x1
1423 +x2
1423 +x2
1424
1424
1425 # root to parent:
1425 # root to parent:
1426
1426
1427 % hg st -C --rev 0 --rev .
1427 % hg st -C --rev 0 --rev .
1428 M a
1428 M a
1429 A y/x
1429 A y/x
1430 x/x
1430 x/x
1431 R x/x
1431 R x/x
1432
1432
1433 % hg diff --git --rev 0 --rev .
1433 % hg diff --git --rev 0 --rev .
1434 diff --git a/a b/a
1434 diff --git a/a b/a
1435 --- a/a
1435 --- a/a
1436 +++ b/a
1436 +++ b/a
1437 @@ -1,1 +1,2 @@
1437 @@ -1,1 +1,2 @@
1438 a
1438 a
1439 +7
1439 +7
1440 diff --git a/x/x b/y/x
1440 diff --git a/x/x b/y/x
1441 rename from x/x
1441 rename from x/x
1442 rename to y/x
1442 rename to y/x
1443 --- a/x/x
1443 --- a/x/x
1444 +++ b/y/x
1444 +++ b/y/x
1445 @@ -1,1 +1,2 @@
1445 @@ -1,1 +1,2 @@
1446 x
1446 x
1447 +x1
1447 +x1
1448
1448
1449 # parent to root:
1449 # parent to root:
1450
1450
1451 % hg st -C --rev . --rev 0
1451 % hg st -C --rev . --rev 0
1452 M a
1452 M a
1453 A x/x
1453 A x/x
1454 y/x
1454 y/x
1455 R y/x
1455 R y/x
1456
1456
1457 % hg diff --git --rev . --rev 0
1457 % hg diff --git --rev . --rev 0
1458 diff --git a/a b/a
1458 diff --git a/a b/a
1459 --- a/a
1459 --- a/a
1460 +++ b/a
1460 +++ b/a
1461 @@ -1,2 +1,1 @@
1461 @@ -1,2 +1,1 @@
1462 a
1462 a
1463 -7
1463 -7
1464 diff --git a/y/x b/x/x
1464 diff --git a/y/x b/x/x
1465 rename from y/x
1465 rename from y/x
1466 rename to x/x
1466 rename to x/x
1467 --- a/y/x
1467 --- a/y/x
1468 +++ b/x/x
1468 +++ b/x/x
1469 @@ -1,2 +1,1 @@
1469 @@ -1,2 +1,1 @@
1470 x
1470 x
1471 -x1
1471 -x1
1472
1472
1473 # branch to parent:
1473 # branch to parent:
1474
1474
1475 % hg st -C --rev 2 --rev .
1475 % hg st -C --rev 2 --rev .
1476 M a
1476 M a
1477 A y/x
1477 A y/x
1478 x/x
1478 x/x
1479 R x/x
1479 R x/x
1480 R x/y
1480 R x/y
1481
1481
1482 % hg diff --git --rev 2 --rev .
1482 % hg diff --git --rev 2 --rev .
1483 diff --git a/a b/a
1483 diff --git a/a b/a
1484 --- a/a
1484 --- a/a
1485 +++ b/a
1485 +++ b/a
1486 @@ -1,3 +1,2 @@
1486 @@ -1,3 +1,2 @@
1487 a
1487 a
1488 -m1
1488 -m1
1489 -m2
1489 -m2
1490 +7
1490 +7
1491 diff --git a/x/y b/x/y
1491 diff --git a/x/y b/x/y
1492 deleted file mode 100644
1492 deleted file mode 100644
1493 --- a/x/y
1493 --- a/x/y
1494 +++ /dev/null
1494 +++ /dev/null
1495 @@ -1,1 +0,0 @@
1495 @@ -1,1 +0,0 @@
1496 -y1
1496 -y1
1497 diff --git a/x/x b/y/x
1497 diff --git a/x/x b/y/x
1498 rename from x/x
1498 rename from x/x
1499 rename to y/x
1499 rename to y/x
1500 --- a/x/x
1500 --- a/x/x
1501 +++ b/y/x
1501 +++ b/y/x
1502 @@ -1,1 +1,2 @@
1502 @@ -1,1 +1,2 @@
1503 x
1503 x
1504 +x1
1504 +x1
1505
1505
1506 # parent to branch:
1506 # parent to branch:
1507
1507
1508 % hg st -C --rev . --rev 2
1508 % hg st -C --rev . --rev 2
1509 M a
1509 M a
1510 A x/x
1510 A x/x
1511 y/x
1511 y/x
1512 A x/y
1512 A x/y
1513 R y/x
1513 R y/x
1514
1514
1515 % hg diff --git --rev . --rev 2
1515 % hg diff --git --rev . --rev 2
1516 diff --git a/a b/a
1516 diff --git a/a b/a
1517 --- a/a
1517 --- a/a
1518 +++ b/a
1518 +++ b/a
1519 @@ -1,2 +1,3 @@
1519 @@ -1,2 +1,3 @@
1520 a
1520 a
1521 -7
1521 -7
1522 +m1
1522 +m1
1523 +m2
1523 +m2
1524 diff --git a/y/x b/x/x
1524 diff --git a/y/x b/x/x
1525 rename from y/x
1525 rename from y/x
1526 rename to x/x
1526 rename to x/x
1527 --- a/y/x
1527 --- a/y/x
1528 +++ b/x/x
1528 +++ b/x/x
1529 @@ -1,2 +1,1 @@
1529 @@ -1,2 +1,1 @@
1530 x
1530 x
1531 -x1
1531 -x1
1532 diff --git a/x/y b/x/y
1532 diff --git a/x/y b/x/y
1533 new file mode 100644
1533 new file mode 100644
1534 --- /dev/null
1534 --- /dev/null
1535 +++ b/x/y
1535 +++ b/x/y
1536 @@ -0,0 +1,1 @@
1536 @@ -0,0 +1,1 @@
1537 +y1
1537 +y1
1538
1538
1539
1539
1540
1540
1541 Cannot implement unrelated branch with tb
1541 Cannot implement unrelated branch with tb
1542 testing copies with unrelated branch
1542 testing copies with unrelated branch
1543
1543
1544 $ hg init unrelated
1544 $ hg init unrelated
1545 $ cd unrelated
1545 $ cd unrelated
1546 $ echo a >> a
1546 $ echo a >> a
1547 $ hg ci -Am adda
1547 $ hg ci -Am adda
1548 adding a
1548 adding a
1549 $ hg mv a b
1549 $ hg mv a b
1550 $ hg ci -m movea
1550 $ hg ci -m movea
1551 $ hg up -C null
1551 $ hg up -C null
1552 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
1552 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
1553 $ echo a >> a
1553 $ echo a >> a
1554 $ hg ci -Am addunrelateda
1554 $ hg ci -Am addunrelateda
1555 adding a
1555 adding a
1556 created new head
1556 created new head
1557
1557
1558 unrelated branch diff
1558 unrelated branch diff
1559
1559
1560 $ hg diff --git -r 2 -r 1
1560 $ hg diff --git -r 2 -r 1
1561 diff --git a/a b/a
1561 diff --git a/a b/a
1562 deleted file mode 100644
1562 deleted file mode 100644
1563 --- a/a
1563 --- a/a
1564 +++ /dev/null
1564 +++ /dev/null
1565 @@ -1,1 +0,0 @@
1565 @@ -1,1 +0,0 @@
1566 -a
1566 -a
1567 diff --git a/b b/b
1567 diff --git a/b b/b
1568 new file mode 100644
1568 new file mode 100644
1569 --- /dev/null
1569 --- /dev/null
1570 +++ b/b
1570 +++ b/b
1571 @@ -0,0 +1,1 @@
1571 @@ -0,0 +1,1 @@
1572 +a
1572 +a
1573 $ cd ..
1573 $ cd ..
@@ -1,168 +1,168
1 $ cat >> $HGRCPATH <<EOF
1 $ cat >> $HGRCPATH <<EOF
2 > [extensions]
2 > [extensions]
3 > graphlog=
3 > graphlog=
4 > rebase=
4 > rebase=
5 >
5 >
6 > [alias]
6 > [alias]
7 > tglog = log -G --template "{rev}: '{desc}' {branches}\n"
7 > tglog = log -G --template "{rev}: '{desc}' {branches}\n"
8 > EOF
8 > EOF
9
9
10
10
11 $ hg init a
11 $ hg init a
12 $ cd a
12 $ cd a
13
13
14 $ echo C1 > C1
14 $ echo C1 > C1
15 $ hg ci -Am C1
15 $ hg ci -Am C1
16 adding C1
16 adding C1
17
17
18 $ echo C2 > C2
18 $ echo C2 > C2
19 $ hg ci -Am C2
19 $ hg ci -Am C2
20 adding C2
20 adding C2
21
21
22 $ cd ..
22 $ cd ..
23
23
24 $ hg clone a b
24 $ hg clone a b
25 updating to branch default
25 updating to branch default
26 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
26 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
27
27
28 $ hg clone a c
28 $ hg clone a c
29 updating to branch default
29 updating to branch default
30 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
30 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
31
31
32 $ cd b
32 $ cd b
33
33
34 $ echo L1 > L1
34 $ echo L1 > L1
35 $ hg ci -Am L1
35 $ hg ci -Am L1
36 adding L1
36 adding L1
37
37
38
38
39 $ cd ../a
39 $ cd ../a
40
40
41 $ echo R1 > R1
41 $ echo R1 > R1
42 $ hg ci -Am R1
42 $ hg ci -Am R1
43 adding R1
43 adding R1
44
44
45
45
46 $ cd ../b
46 $ cd ../b
47
47
48 Now b has one revision to be pulled from a:
48 Now b has one revision to be pulled from a:
49
49
50 $ hg pull --rebase
50 $ hg pull --rebase
51 pulling from $TESTTMP/a (glob)
51 pulling from $TESTTMP/a (glob)
52 searching for changes
52 searching for changes
53 adding changesets
53 adding changesets
54 adding manifests
54 adding manifests
55 adding file changes
55 adding file changes
56 added 1 changesets with 1 changes to 1 files (+1 heads)
56 added 1 changesets with 1 changes to 1 files (+1 heads)
57 saved backup bundle to $TESTTMP/b/.hg/strip-backup/*-backup.hg (glob)
57 saved backup bundle to $TESTTMP/b/.hg/strip-backup/*-backup.hg (glob)
58
58
59 $ hg tglog
59 $ hg tglog
60 @ 3: 'L1'
60 @ 3: 'L1'
61 |
61 |
62 o 2: 'R1'
62 o 2: 'R1'
63 |
63 |
64 o 1: 'C2'
64 o 1: 'C2'
65 |
65 |
66 o 0: 'C1'
66 o 0: 'C1'
67
67
68 Re-run:
68 Re-run:
69
69
70 $ hg pull --rebase
70 $ hg pull --rebase
71 pulling from $TESTTMP/a (glob)
71 pulling from $TESTTMP/a (glob)
72 searching for changes
72 searching for changes
73 no changes found
73 no changes found
74
74
75
75
76 Invoke pull --rebase and nothing to rebase:
76 Invoke pull --rebase and nothing to rebase:
77
77
78 $ cd ../c
78 $ cd ../c
79
79
80 $ hg book norebase
80 $ hg book norebase
81 $ hg pull --rebase
81 $ hg pull --rebase
82 pulling from $TESTTMP/a (glob)
82 pulling from $TESTTMP/a (glob)
83 searching for changes
83 searching for changes
84 adding changesets
84 adding changesets
85 adding manifests
85 adding manifests
86 adding file changes
86 adding file changes
87 added 1 changesets with 1 changes to 1 files
87 added 1 changesets with 1 changes to 1 files
88 nothing to rebase
88 nothing to rebase
89 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
89 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
90 updating bookmark norebase
90 updating bookmark norebase
91
91
92 $ hg tglog -l 1
92 $ hg tglog -l 1
93 @ 2: 'R1'
93 @ 2: 'R1'
94 |
94 |
95
95
96 pull --rebase --update should ignore --update:
96 pull --rebase --update should ignore --update:
97
97
98 $ hg pull --rebase --update
98 $ hg pull --rebase --update
99 pulling from $TESTTMP/a (glob)
99 pulling from $TESTTMP/a (glob)
100 searching for changes
100 searching for changes
101 no changes found
101 no changes found
102
102
103 pull --rebase doesn't update if nothing has been pulled:
103 pull --rebase doesn't update if nothing has been pulled:
104
104
105 $ hg up -q 1
105 $ hg up -q 1
106
106
107 $ hg pull --rebase
107 $ hg pull --rebase
108 pulling from $TESTTMP/a (glob)
108 pulling from $TESTTMP/a (glob)
109 searching for changes
109 searching for changes
110 no changes found
110 no changes found
111
111
112 $ hg tglog -l 1
112 $ hg tglog -l 1
113 o 2: 'R1'
113 o 2: 'R1'
114 |
114 |
115
115
116 $ cd ..
116 $ cd ..
117
117
118 pull --rebase works when a specific revision is pulled (issue3619)
118 pull --rebase works when a specific revision is pulled (issue3619)
119
119
120 $ cd a
120 $ cd a
121 $ hg tglog
121 $ hg tglog
122 @ 2: 'R1'
122 @ 2: 'R1'
123 |
123 |
124 o 1: 'C2'
124 o 1: 'C2'
125 |
125 |
126 o 0: 'C1'
126 o 0: 'C1'
127
127
128 $ echo R2 > R2
128 $ echo R2 > R2
129 $ hg ci -Am R2
129 $ hg ci -Am R2
130 adding R2
130 adding R2
131 $ echo R3 > R3
131 $ echo R3 > R3
132 $ hg ci -Am R3
132 $ hg ci -Am R3
133 adding R3
133 adding R3
134 $ cd ../c
134 $ cd ../c
135 $ hg tglog
135 $ hg tglog
136 o 2: 'R1'
136 o 2: 'R1'
137 |
137 |
138 @ 1: 'C2'
138 @ 1: 'C2'
139 |
139 |
140 o 0: 'C1'
140 o 0: 'C1'
141
141
142 $ echo L1 > L1
142 $ echo L1 > L1
143 $ hg ci -Am L1
143 $ hg ci -Am L1
144 adding L1
144 adding L1
145 created new head
145 created new head
146 $ hg pull --rev tip --rebase
146 $ hg pull --rev tip --rebase
147 pulling from $TESTTMP/a
147 pulling from $TESTTMP/a (glob)
148 searching for changes
148 searching for changes
149 adding changesets
149 adding changesets
150 adding manifests
150 adding manifests
151 adding file changes
151 adding file changes
152 added 2 changesets with 2 changes to 2 files
152 added 2 changesets with 2 changes to 2 files
153 saved backup bundle to $TESTTMP/c/.hg/strip-backup/ff8d69a621f9-backup.hg (glob)
153 saved backup bundle to $TESTTMP/c/.hg/strip-backup/ff8d69a621f9-backup.hg (glob)
154 $ hg tglog
154 $ hg tglog
155 @ 5: 'L1'
155 @ 5: 'L1'
156 |
156 |
157 o 4: 'R3'
157 o 4: 'R3'
158 |
158 |
159 o 3: 'R2'
159 o 3: 'R2'
160 |
160 |
161 o 2: 'R1'
161 o 2: 'R1'
162 |
162 |
163 o 1: 'C2'
163 o 1: 'C2'
164 |
164 |
165 o 0: 'C1'
165 o 0: 'C1'
166
166
167
167
168
168
General Comments 0
You need to be logged in to leave comments. Login now