Mercurial > hg
comparison tests/test-exchange-multi-source.t @ 46931:d4e4ccb75f99
outgoing: accept multiple destinations
This align the behavior of `hg outgoing` with the one of `hg incoming`. In addition this prepare the introduction of having simple `path` resolve to multiple destination in practice (eg: `default`)
Differential Revision: https://phab.mercurial-scm.org/D10391
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 01:26:44 +0200 |
parents | 066b8d8f75b8 |
children | 946db89607c8 |
comparison
equal
deleted
inserted
replaced
46930:0afe96e374a7 | 46931:d4e4ccb75f99 |
---|---|
128 ---- | 128 ---- |
129 | 129 |
130 $ cp -R ./branch-E ./branch-E-push | 130 $ cp -R ./branch-E ./branch-E-push |
131 $ cp -R ./branch-G ./branch-G-push | 131 $ cp -R ./branch-G ./branch-G-push |
132 $ cp -R ./branch-H ./branch-H-push | 132 $ cp -R ./branch-H ./branch-H-push |
133 $ hg out -G -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push | |
134 comparing with ./branch-E-push | |
135 searching for changes | |
136 comparing with ./branch-G-push | |
137 searching for changes | |
138 comparing with ./branch-H-push | |
139 searching for changes | |
140 o changeset: 7:40faebb2ec45 | |
141 | tag: tip | |
142 | parent: 2:f838bfaca5c7 | |
143 | user: test | |
144 | date: Thu Jan 01 00:00:00 1970 +0000 | |
145 | summary: H | |
146 | | |
147 | o changeset: 6:c521a06b234b | |
148 | | user: test | |
149 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
150 | | summary: G | |
151 | | | |
152 | o changeset: 5:2f3a4c5c1417 | |
153 | parent: 1:27547f69f254 | |
154 | user: test | |
155 | date: Thu Jan 01 00:00:00 1970 +0000 | |
156 | summary: F | |
157 | | |
158 | o changeset: 4:a603bfb5a83e | |
159 | | user: test | |
160 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
161 | | summary: E | |
162 | | | |
163 | o changeset: 3:b3325c91a4d9 | |
164 |/ user: test | |
165 | date: Thu Jan 01 00:00:00 1970 +0000 | |
166 | summary: D | |
167 | | |
168 o changeset: 2:f838bfaca5c7 | |
169 user: test | |
170 date: Thu Jan 01 00:00:00 1970 +0000 | |
171 summary: C | |
172 | |
133 $ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push | 173 $ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push |
134 pushing to ./branch-E-push | 174 pushing to ./branch-E-push |
135 searching for changes | 175 searching for changes |
136 adding changesets | 176 adding changesets |
137 adding manifests | 177 adding manifests |
289 We only push a specific branch with --rev | 329 We only push a specific branch with --rev |
290 | 330 |
291 $ cp -R ./branch-E ./branch-E-push | 331 $ cp -R ./branch-E ./branch-E-push |
292 $ cp -R ./branch-G ./branch-G-push | 332 $ cp -R ./branch-G ./branch-G-push |
293 $ cp -R ./branch-H ./branch-H-push | 333 $ cp -R ./branch-H ./branch-H-push |
334 $ hg out -G -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push --rev default | |
335 comparing with ./branch-E-push | |
336 searching for changes | |
337 comparing with ./branch-G-push | |
338 searching for changes | |
339 comparing with ./branch-H-push | |
340 searching for changes | |
341 no changes found | |
342 o changeset: 7:40faebb2ec45 | |
343 | tag: tip | |
344 | parent: 2:f838bfaca5c7 | |
345 | user: test | |
346 | date: Thu Jan 01 00:00:00 1970 +0000 | |
347 | summary: H | |
348 | | |
349 o changeset: 2:f838bfaca5c7 | |
350 user: test | |
351 date: Thu Jan 01 00:00:00 1970 +0000 | |
352 summary: C | |
353 | |
294 $ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push --rev default | 354 $ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push --rev default |
295 pushing to ./branch-E-push | 355 pushing to ./branch-E-push |
296 searching for changes | 356 searching for changes |
297 adding changesets | 357 adding changesets |
298 adding manifests | 358 adding manifests |
347 Same push, but the first one is a no-op | 407 Same push, but the first one is a no-op |
348 | 408 |
349 $ cp -R ./branch-E ./branch-E-push | 409 $ cp -R ./branch-E ./branch-E-push |
350 $ cp -R ./branch-G ./branch-G-push | 410 $ cp -R ./branch-G ./branch-G-push |
351 $ cp -R ./branch-H ./branch-H-push | 411 $ cp -R ./branch-H ./branch-H-push |
412 $ hg out -G -R test-repo-bare ./branch-G-push ./branch-H-push ./branch-E-push --rev default | |
413 comparing with ./branch-G-push | |
414 searching for changes | |
415 comparing with ./branch-H-push | |
416 searching for changes | |
417 no changes found | |
418 comparing with ./branch-E-push | |
419 searching for changes | |
420 o changeset: 7:40faebb2ec45 | |
421 | tag: tip | |
422 | parent: 2:f838bfaca5c7 | |
423 | user: test | |
424 | date: Thu Jan 01 00:00:00 1970 +0000 | |
425 | summary: H | |
426 | | |
427 o changeset: 2:f838bfaca5c7 | |
428 user: test | |
429 date: Thu Jan 01 00:00:00 1970 +0000 | |
430 summary: C | |
431 | |
352 $ hg push --force -R test-repo-bare ./branch-G-push ./branch-H-push ./branch-E-push --rev default | 432 $ hg push --force -R test-repo-bare ./branch-G-push ./branch-H-push ./branch-E-push --rev default |
353 pushing to ./branch-G-push | 433 pushing to ./branch-G-push |
354 searching for changes | 434 searching for changes |
355 adding changesets | 435 adding changesets |
356 adding manifests | 436 adding manifests |