comparison tests/groups-legacy.t @ 41:b8a7342fbf23

outgoingall and incomingall can't handle -g as it is already taken, sticking to just --group
author Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
date Sat, 24 Sep 2016 23:06:23 +0200
parents 1c22cd2904eb
children 7b4bc975644c
comparison
equal deleted inserted replaced
40:1c22cd2904eb 41:b8a7342fbf23
84 > EOF 84 > EOF
85 85
86 $ hg --cwd $BASE commit -m 'Second' 86 $ hg --cwd $BASE commit -m 'Second'
87 87
88 88
89 $ hg --cwd $BASE pushall -g even 89 $ hg --cwd $BASE pushall --group even
90 pushing to */rep2 (glob) 90 pushing to */rep2 (glob)
91 searching for changes 91 searching for changes
92 adding changesets 92 adding changesets
93 adding manifests 93 adding manifests
94 adding file changes 94 adding file changes
136 > From repo2… 136 > From repo2…
137 > EOF 137 > EOF
138 138
139 $ hg --cwd $REP2 commit -m "In repo2" 139 $ hg --cwd $REP2 commit -m "In repo2"
140 140
141 $ hg --cwd $BASE incomingall -g odd 141 $ hg --cwd $BASE incomingall --group odd
142 comparing with */rep1 (glob) 142 comparing with */rep1 (glob)
143 searching for changes 143 searching for changes
144 changeset: 1:* (glob) 144 changeset: 1:* (glob)
145 tag: tip 145 tag: tip
146 user: Andy Default <default@nowhere.net> 146 user: Andy Default <default@nowhere.net>
147 date: .* (re) 147 date: .* (re)
148 summary: In repo1 148 summary: In repo1
149 149
150 comparing with */rep3 (glob)
151 searching for changes
152 no changes found
153
154 $ hg --cwd $BASE incomingall --group even
150 comparing with */rep2 (glob) 155 comparing with */rep2 (glob)
151 searching for changes 156 searching for changes
152 changeset: 1:* (glob) 157 changeset: 2:.* (re)
153 tag: tip 158 tag: tip
154 user: Andy Default <default@nowhere.net> 159 user: Andy Default <default@nowhere.net>
155 date: .* (re) 160 date: .* (re)
156 summary: In repo2 161 summary: In repo2
157 162
158 comparing with */rep3 (glob) 163 comparing with */rep4 (glob)
159 searching for changes 164 searching for changes
160 no changes found 165 no changes found
161
162 $ hg --cwd $BASE incomingall -g even
163 166
164 $ hg --cwd $BASE pullall -g odd 167 $ hg --cwd $BASE pullall -g odd
165 pulling from */rep1 (glob) 168 pulling from */rep1 (glob)
166 searching for changes 169 searching for changes
167 adding changesets 170 adding changesets
172 pulling from */rep3 (glob) 175 pulling from */rep3 (glob)
173 searching for changes 176 searching for changes
174 no changes found 177 no changes found
175 178
176 $ hg --cwd $BASE log -T '{rev}: {desc}\n' 179 $ hg --cwd $BASE log -T '{rev}: {desc}\n'
177 2: In repo2 180 2: In repo1
178 1: In repo1 181 1: Second
179 0: First 182 0: First
180 183
181 $ hg --cwd $BASE outgoingall 184 $ hg --cwd $BASE outgoingall --group even
182 comparing with */rep1 (glob) 185 comparing with */rep1 (glob)
183 searching for changes 186 searching for changes
184 changeset: 2:.* (re) 187 changeset: 2:.* (re)
185 tag: tip 188 tag: tip
186 parent: 0:.* (re) 189 parent: 0:.* (re)
187 user: Andy Default <default@nowhere.net> 190 user: Andy Default <default@nowhere.net>
188 date: .* (re) 191 date: .* (re)
189 summary: In repo2 192 summary: In repo2
190 193
194 comparing with */rep3 (glob)
195 searching for changes
196 changeset: 1:* (glob)
197 user: Andy Default <default@nowhere.net>
198 date: .* (re)
199 summary: In repo1
200
201 $ hg --cwd $BASE outgoingall --group odd
202
191 comparing with */rep2 (glob) 203 comparing with */rep2 (glob)
192 searching for changes 204 searching for changes
193 changeset: 1:* (glob) 205 changeset: 1:* (glob)
194 user: Andy Default <default@nowhere.net> 206 user: Andy Default <default@nowhere.net>
195 date: .* (re) 207 date: .* (re)
196 summary: In repo1 208 summary: In repo1
197 209
198 comparing with */rep3 (glob)
199 searching for changes
200 changeset: 1:* (glob)
201 user: Andy Default <default@nowhere.net>
202 date: .* (re)
203 summary: In repo1
204
205 changeset: 2:* (glob) 210 changeset: 2:* (glob)
206 tag: tip 211 tag: tip
207 parent: 0:* (glob) 212 parent: 0:* (glob)
208 user: Andy Default <default@nowhere.net> 213 user: Andy Default <default@nowhere.net>
209 date: .* (re) 214 date: .* (re)
210 summary: In repo2 215 summary: In repo2
211 216
212
213 Wrong groups do not work 217 Wrong groups do not work
214 218
215 $ hg --cwd $BASE pullall -g unknown 219 $ hg --cwd $BASE pullall -g unknown
216 abort: No paths defined in section paths 220 abort: No paths defined in section unknown
217 [255] 221 [255]
218 222
219 $ hg --cwd $BASE incomingall -g unknown 223 $ hg --cwd $BASE incomingall --group unknown
220 abort: No paths defined in section paths 224 abort: No paths defined in section unknown
221 [255] 225 [255]
222 226
223 $ hg --cwd $BASE outgoingall -g unknown 227 $ hg --cwd $BASE outgoingall --group unknown
224 abort: No paths defined in section paths 228 abort: No paths defined in section unknown
225 [255] 229 [255]
226 230
227 $ hg --cwd $BASE pushall -g unknown 231 $ hg --cwd $BASE pushall -g unknown
228 abort: No paths defined in section paths 232 abort: No paths defined in section unknown
229 [255] 233 [255]
230 234
231 Neither do default commands without normal paths 235 Neither do default commands without normal paths
232 236
233 $ hg --cwd $BASE pushall 237 $ hg --cwd $BASE pushall