Mercurial > hg-stable
comparison tests/test-update-reverse @ 1236:67a28636ea64
Fix bug with co -C across branches, update tests
author | mpm@selenic.com |
---|---|
date | Tue, 13 Sep 2005 18:38:27 -0500 |
parents | |
children | 2073e5a71008 |
comparison
equal
deleted
inserted
replaced
1235:5c0bd13bd771 | 1236:67a28636ea64 |
---|---|
1 #!/bin/sh | |
2 | |
3 hg init | |
4 touch a | |
5 hg add a | |
6 hg commit -m "Added a" -d "0 0" | |
7 | |
8 touch main | |
9 hg add main | |
10 hg commit -t "Added main" -d "0 0" | |
11 hg checkout 0 | |
12 | |
13 echo Main should be gone | |
14 ls | |
15 | |
16 touch side1 | |
17 hg add side1 | |
18 hg commit -m "Added side1" -d "0 0" | |
19 touch side2 | |
20 hg add side2 | |
21 hg commit -m "Added side2" -d "0 0" | |
22 | |
23 hg log | |
24 | |
25 echo Should have two heads, side2 and main | |
26 hg heads | |
27 | |
28 echo Should show "a side1 side2" | |
29 ls | |
30 | |
31 hg update --debug -C 1 | |
32 echo Should only show "a main" | |
33 ls | |
34 |