comparison tests/test-children @ 5124:06154aff2b1a

merge with -stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 08 Aug 2007 23:00:01 +0200
parents 8b90d763ea90
children
comparison
equal deleted inserted replaced
5123:f94dbc6c7eaf 5124:06154aff2b1a
1 #!/bin/sh
2 # test children command
3
4 cat <<EOF >> $HGRCPATH
5 [extensions]
6 hgext.children=
7 EOF
8
9 echo "% init"
10 hg init t
11 cd t
12
13 echo "% no working directory"
14 hg children
15
16 echo % setup
17 echo 0 > file0
18 hg ci -qAm 0 -d '0 0'
19
20 echo 1 > file1
21 hg ci -qAm 1 -d '1 0'
22
23 echo 2 >> file0
24 hg ci -qAm 2 -d '2 0'
25
26 hg co null
27 echo 3 > file3
28 hg ci -qAm 3 -d '3 0'
29
30 echo "% hg children at revision 3 (tip)"
31 hg children
32
33 hg co null
34 echo "% hg children at nullrev (should be 0 and 3)"
35 hg children
36
37 hg co 1
38 echo "% hg children at revision 1 (should be 2)"
39 hg children
40
41 hg co 2
42 echo "% hg children at revision 2 (other head)"
43 hg children
44
45 for i in null 0 1 2 3; do
46 echo "% hg children -r $i"
47 hg children -r $i
48 done
49
50 echo "% hg children -r 0 file0 (should be 2)"
51 hg children -r 0 file0
52
53 echo "% hg children -r 1 file0 (should be 2)"
54 hg children -r 1 file0
55
56 hg co 0
57 echo "% hg children file0 at revision 0 (should be 2)"
58 hg children file0
59