Mercurial > hg
comparison tests/test-push-r @ 1781:284fc722c342
add an optional argument to push only the specified revisions (push -r)
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 14 Feb 2006 21:11:57 +0100 |
parents | |
children | d4a3a8a332ab |
comparison
equal
deleted
inserted
replaced
1715:40346aa66b0f | 1781:284fc722c342 |
---|---|
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 mkdir test-"$i" | |
53 hg --cwd test-"$i" init | |
54 hg -R test push -r "$i" test-"$i" | |
55 cd test-"$i" | |
56 hg verify | |
57 cd .. | |
58 done | |
59 cd test-8 | |
60 hg pull ../test-7 | |
61 hg verify |