Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-clone-r @ 1468:dc1bbc456b96
Added a test for clone -r.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Sun, 16 Oct 2005 16:24:40 -0700 |
parents | |
children | d4a3a8a332ab |
comparison
equal
deleted
inserted
replaced
1467:06d5d8794e5f | 1468:dc1bbc456b96 |
---|---|
1 #!/bin/bash | |
2 | |
3 hg init test | |
4 cd test | |
5 cat >>afile <<EOF | |
6 0 | |
7 EOF | |
8 hg add afile | |
9 hg commit -m "0.0" | |
10 cat >>afile <<EOF | |
11 1 | |
12 EOF | |
13 hg commit -m "0.1" | |
14 cat >>afile <<EOF | |
15 2 | |
16 EOF | |
17 hg commit -m "0.2" | |
18 cat >>afile <<EOF | |
19 3 | |
20 EOF | |
21 hg commit -m "0.3" | |
22 hg update -C 0 | |
23 cat >>afile <<EOF | |
24 1 | |
25 EOF | |
26 hg commit -m "1.1" | |
27 cat >>afile <<EOF | |
28 2 | |
29 EOF | |
30 hg commit -m "1.2" | |
31 cat >fred <<EOF | |
32 a line | |
33 EOF | |
34 cat >>afile <<EOF | |
35 3 | |
36 EOF | |
37 hg add fred | |
38 hg commit -m "1.3" | |
39 hg mv afile adifferentfile | |
40 hg commit -m "1.3m" | |
41 hg update -C 3 | |
42 hg mv afile anotherfile | |
43 hg commit -m "0.3m" | |
44 hg debugindex .hg/data/afile.i | |
45 hg debugindex .hg/data/adifferentfile.i | |
46 hg debugindex .hg/data/anotherfile.i | |
47 hg debugindex .hg/data/fred.i | |
48 hg debugindex .hg/00manifest.i | |
49 hg verify | |
50 cd .. | |
51 for i in 0 1 2 3 4 5 6 7 8; do | |
52 hg clone -r "$i" test test-"$i" | |
53 cd test-"$i" | |
54 hg verify | |
55 cd .. | |
56 done | |
57 cd test-8 | |
58 hg pull ../test-7 | |
59 hg verify |