##// END OF EJS Templates
tests: unify test-empty-group
Adrian Buehlmann -
r12189:fb0c6373 default
parent child Browse files
Show More
@@ -1,4 +1,3 b''
1 #!/bin/sh
2 #
1 #
3 # A B
2 # A B
4 #
3 #
@@ -18,32 +17,122 b''
18 # wrongly reported the number of csets)
17 # wrongly reported the number of csets)
19 #
18 #
20
19
21 hg init a
20 $ hg init a
22 cd a
21 $ cd a
23 touch init
22 $ touch init
24 hg ci -A -m 0
23 $ hg ci -A -m 0
25 touch x y
24 adding init
26 hg ci -A -m 1
25 $ touch x y
27 hg update 0
26 $ hg ci -A -m 1
28 touch x y
27 adding x
29 hg ci -A -m 2
28 adding y
30 hg merge 1
29
31 hg ci -A -m m1
30 $ hg update 0
31 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
32 $ touch x y
33 $ hg ci -A -m 2
34 adding x
35 adding y
36 created new head
37
38 $ hg merge 1
39 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
40 (branch merge, don't forget to commit)
41 $ hg ci -A -m m1
42
32 #hg log
43 #hg log
33 #hg debugindex .hg/store/00manifest.i
44 #hg debugindex .hg/store/00manifest.i
34 hg update -C 1
45
35 hg merge 2
46 $ hg update -C 1
36 hg ci -A -m m2
47 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
48 $ hg merge 2
49 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 (branch merge, don't forget to commit)
51 $ hg ci -A -m m2
52 created new head
53
37 #hg log
54 #hg log
38 #hg debugindex .hg/store/00manifest.i
55 #hg debugindex .hg/store/00manifest.i
39
56
40 cd ..
57 $ cd ..
41 hg clone -r 3 a b
58
42 hg clone -r 4 a c
59 $ hg clone -r 3 a b
43 hg -R a outgoing b
60 requesting all changes
44 hg -R a outgoing c
61 adding changesets
45 hg -R b outgoing c
62 adding manifests
46 hg -R c outgoing b
63 adding file changes
64 added 4 changesets with 3 changes to 3 files
65 updating to branch default
66 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
67
68 $ hg clone -r 4 a c
69 requesting all changes
70 adding changesets
71 adding manifests
72 adding file changes
73 added 4 changesets with 3 changes to 3 files
74 updating to branch default
75 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
47
76
48 hg -R b pull a
77 $ hg -R a outgoing b
49 hg -R c pull a
78 comparing with b
79 searching for changes
80 changeset: 4:119caaef4ed1
81 tag: tip
82 parent: 1:79f9e10cd04e
83 parent: 2:8e1bb01c1a24
84 user: test
85 date: Thu Jan 01 00:00:00 1970 +0000
86 summary: m2
87
88 $ hg -R a outgoing c
89 comparing with c
90 searching for changes
91 changeset: 3:cbb48b367d1b
92 parent: 2:8e1bb01c1a24
93 parent: 1:79f9e10cd04e
94 user: test
95 date: Thu Jan 01 00:00:00 1970 +0000
96 summary: m1
97
98 $ hg -R b outgoing c
99 comparing with c
100 searching for changes
101 changeset: 3:cbb48b367d1b
102 tag: tip
103 parent: 2:8e1bb01c1a24
104 parent: 1:79f9e10cd04e
105 user: test
106 date: Thu Jan 01 00:00:00 1970 +0000
107 summary: m1
108
109 $ hg -R c outgoing b
110 comparing with b
111 searching for changes
112 changeset: 3:119caaef4ed1
113 tag: tip
114 parent: 1:79f9e10cd04e
115 parent: 2:8e1bb01c1a24
116 user: test
117 date: Thu Jan 01 00:00:00 1970 +0000
118 summary: m2
119
120
121 $ hg -R b pull a
122 pulling from a
123 searching for changes
124 adding changesets
125 adding manifests
126 adding file changes
127 added 1 changesets with 0 changes to 0 files (+1 heads)
128 (run 'hg heads' to see heads, 'hg merge' to merge)
129
130 $ hg -R c pull a
131 pulling from a
132 searching for changes
133 adding changesets
134 adding manifests
135 adding file changes
136 added 1 changesets with 0 changes to 0 files (+1 heads)
137 (run 'hg heads' to see heads, 'hg merge' to merge)
138
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now