| 1 |
==================================================== |
| 2 |
Test push/pull from multiple source at the same time |
| 3 |
==================================================== |
| 4 |
|
| 5 |
|
| 6 |
Setup |
| 7 |
===== |
| 8 |
|
| 9 |
main repository |
| 10 |
--------------- |
| 11 |
|
| 12 |
$ . $RUNTESTDIR/testlib/common.sh |
| 13 |
$ hg init main-repo |
| 14 |
$ cd main-repo |
| 15 |
$ mkcommit A |
| 16 |
$ mkcommit B |
| 17 |
$ mkcommit C |
| 18 |
$ mkcommit D |
| 19 |
$ mkcommit E |
| 20 |
$ hg up 'desc(B)' |
| 21 |
0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
| 22 |
$ mkcommit F |
| 23 |
created new head |
| 24 |
$ mkcommit G |
| 25 |
$ hg up 'desc(C)' |
| 26 |
1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
| 27 |
$ mkcommit H |
| 28 |
created new head |
| 29 |
$ hg up null --quiet |
| 30 |
$ hg log -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 31 |
o H 7 |
| 32 |
| |
| 33 |
| o E 4 |
| 34 |
| | |
| 35 |
| o D 3 |
| 36 |
|/ |
| 37 |
o C 2 |
| 38 |
| |
| 39 |
| o G 6 |
| 40 |
| | |
| 41 |
| o F 5 |
| 42 |
|/ |
| 43 |
o B 1 |
| 44 |
| |
| 45 |
o A 0 |
| 46 |
|
| 47 |
$ cd .. |
| 48 |
|
| 49 |
Various other repositories |
| 50 |
-------------------------- |
| 51 |
|
| 52 |
$ hg clone main-repo branch-E --rev 4 -U |
| 53 |
adding changesets |
| 54 |
adding manifests |
| 55 |
adding file changes |
| 56 |
added 5 changesets with 5 changes to 5 files |
| 57 |
new changesets 4a2df7238c3b:a603bfb5a83e |
| 58 |
$ hg clone main-repo branch-G --rev 6 -U |
| 59 |
adding changesets |
| 60 |
adding manifests |
| 61 |
adding file changes |
| 62 |
added 4 changesets with 4 changes to 4 files |
| 63 |
new changesets 4a2df7238c3b:c521a06b234b |
| 64 |
$ hg clone main-repo branch-H --rev 7 -U |
| 65 |
adding changesets |
| 66 |
adding manifests |
| 67 |
adding file changes |
| 68 |
added 4 changesets with 4 changes to 4 files |
| 69 |
new changesets 4a2df7238c3b:40faebb2ec45 |
| 70 |
|
| 71 |
Test simple bare operation |
| 72 |
========================== |
| 73 |
|
| 74 |
pull |
| 75 |
---- |
| 76 |
|
| 77 |
$ hg clone main-repo test-repo-bare --rev 0 -U |
| 78 |
adding changesets |
| 79 |
adding manifests |
| 80 |
adding file changes |
| 81 |
added 1 changesets with 1 changes to 1 files |
| 82 |
new changesets 4a2df7238c3b |
| 83 |
|
| 84 |
$ hg pull -R test-repo-bare ./branch-E ./branch-G ./branch-H |
| 85 |
pulling from ./branch-E |
| 86 |
searching for changes |
| 87 |
adding changesets |
| 88 |
adding manifests |
| 89 |
adding file changes |
| 90 |
added 4 changesets with 4 changes to 4 files |
| 91 |
new changesets 27547f69f254:a603bfb5a83e |
| 92 |
(run 'hg update' to get a working copy) |
| 93 |
pulling from ./branch-G |
| 94 |
searching for changes |
| 95 |
adding changesets |
| 96 |
adding manifests |
| 97 |
adding file changes |
| 98 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 99 |
new changesets 2f3a4c5c1417:c521a06b234b |
| 100 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 101 |
pulling from ./branch-H |
| 102 |
searching for changes |
| 103 |
adding changesets |
| 104 |
adding manifests |
| 105 |
adding file changes |
| 106 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 107 |
new changesets 40faebb2ec45 |
| 108 |
(run 'hg heads .' to see heads, 'hg merge' to merge) |
| 109 |
$ hg log -R test-repo-bare -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 110 |
o H 7 |
| 111 |
| |
| 112 |
| o E 4 |
| 113 |
| | |
| 114 |
| o D 3 |
| 115 |
|/ |
| 116 |
o C 2 |
| 117 |
| |
| 118 |
| o G 6 |
| 119 |
| | |
| 120 |
| o F 5 |
| 121 |
|/ |
| 122 |
o B 1 |
| 123 |
| |
| 124 |
o A 0 |
| 125 |
|
| 126 |
|
| 127 |
push |
| 128 |
---- |
| 129 |
|
| 130 |
$ cp -R ./branch-E ./branch-E-push |
| 131 |
$ cp -R ./branch-G ./branch-G-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 |
o changeset: 7:40faebb2ec45 |
| 137 |
tag: tip |
| 138 |
parent: 2:f838bfaca5c7 |
| 139 |
user: test |
| 140 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 141 |
summary: H |
| 142 |
|
| 143 |
o changeset: 6:c521a06b234b |
| 144 |
| user: test |
| 145 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 146 |
| summary: G |
| 147 |
| |
| 148 |
o changeset: 5:2f3a4c5c1417 |
| 149 |
parent: 1:27547f69f254 |
| 150 |
user: test |
| 151 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 152 |
summary: F |
| 153 |
|
| 154 |
comparing with ./branch-G-push |
| 155 |
searching for changes |
| 156 |
o changeset: 7:40faebb2ec45 |
| 157 |
| tag: tip |
| 158 |
| parent: 2:f838bfaca5c7 |
| 159 |
| user: test |
| 160 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 161 |
| summary: H |
| 162 |
| |
| 163 |
| o changeset: 4:a603bfb5a83e |
| 164 |
| | user: test |
| 165 |
| | date: Thu Jan 01 00:00:00 1970 +0000 |
| 166 |
| | summary: E |
| 167 |
| | |
| 168 |
| o changeset: 3:b3325c91a4d9 |
| 169 |
|/ user: test |
| 170 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 171 |
| summary: D |
| 172 |
| |
| 173 |
o changeset: 2:f838bfaca5c7 |
| 174 |
user: test |
| 175 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 176 |
summary: C |
| 177 |
|
| 178 |
comparing with ./branch-H-push |
| 179 |
searching for changes |
| 180 |
o changeset: 6:c521a06b234b |
| 181 |
| user: test |
| 182 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 183 |
| summary: G |
| 184 |
| |
| 185 |
o changeset: 5:2f3a4c5c1417 |
| 186 |
parent: 1:27547f69f254 |
| 187 |
user: test |
| 188 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 189 |
summary: F |
| 190 |
|
| 191 |
o changeset: 4:a603bfb5a83e |
| 192 |
| user: test |
| 193 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 194 |
| summary: E |
| 195 |
| |
| 196 |
o changeset: 3:b3325c91a4d9 |
| 197 |
user: test |
| 198 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 199 |
summary: D |
| 200 |
|
| 201 |
$ hg bundle -R test-repo-bare bundle.hg ./branch-E-push ./branch-G-push ./branch-H-push |
| 202 |
searching for changes |
| 203 |
searching for changes |
| 204 |
searching for changes |
| 205 |
6 changesets found |
| 206 |
$ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push |
| 207 |
pushing to ./branch-E-push |
| 208 |
searching for changes |
| 209 |
adding changesets |
| 210 |
adding manifests |
| 211 |
adding file changes |
| 212 |
added 3 changesets with 3 changes to 3 files (+2 heads) |
| 213 |
pushing to ./branch-G-push |
| 214 |
searching for changes |
| 215 |
adding changesets |
| 216 |
adding manifests |
| 217 |
adding file changes |
| 218 |
added 4 changesets with 4 changes to 4 files (+2 heads) |
| 219 |
pushing to ./branch-H-push |
| 220 |
searching for changes |
| 221 |
adding changesets |
| 222 |
adding manifests |
| 223 |
adding file changes |
| 224 |
added 4 changesets with 4 changes to 4 files (+2 heads) |
| 225 |
$ hg log -R ./branch-E-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 226 |
o H 7 |
| 227 |
| |
| 228 |
| o E 4 |
| 229 |
| | |
| 230 |
| o D 3 |
| 231 |
|/ |
| 232 |
o C 2 |
| 233 |
| |
| 234 |
| o G 6 |
| 235 |
| | |
| 236 |
| o F 5 |
| 237 |
|/ |
| 238 |
o B 1 |
| 239 |
| |
| 240 |
o A 0 |
| 241 |
|
| 242 |
$ hg log -R ./branch-G-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 243 |
o H 7 |
| 244 |
| |
| 245 |
| o E 6 |
| 246 |
| | |
| 247 |
| o D 5 |
| 248 |
|/ |
| 249 |
o C 4 |
| 250 |
| |
| 251 |
| o G 3 |
| 252 |
| | |
| 253 |
| o F 2 |
| 254 |
|/ |
| 255 |
o B 1 |
| 256 |
| |
| 257 |
o A 0 |
| 258 |
|
| 259 |
$ hg log -R ./branch-H-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 260 |
o G 7 |
| 261 |
| |
| 262 |
o F 6 |
| 263 |
| |
| 264 |
| o E 5 |
| 265 |
| | |
| 266 |
| o D 4 |
| 267 |
| | |
| 268 |
| | o H 3 |
| 269 |
| |/ |
| 270 |
| o C 2 |
| 271 |
|/ |
| 272 |
o B 1 |
| 273 |
| |
| 274 |
o A 0 |
| 275 |
|
| 276 |
$ rm -rf ./*-push |
| 277 |
|
| 278 |
Test operation with a target |
| 279 |
============================ |
| 280 |
|
| 281 |
pull |
| 282 |
---- |
| 283 |
|
| 284 |
$ hg clone main-repo test-repo-rev --rev 0 -U |
| 285 |
adding changesets |
| 286 |
adding manifests |
| 287 |
adding file changes |
| 288 |
added 1 changesets with 1 changes to 1 files |
| 289 |
new changesets 4a2df7238c3b |
| 290 |
|
| 291 |
pulling an explicite revision |
| 292 |
|
| 293 |
$ node_b=`hg log -R main-repo --rev 'desc(B)' -T '{node}'` |
| 294 |
$ hg pull -R test-repo-rev ./branch-E ./branch-G ./branch-H --rev $node_b |
| 295 |
pulling from ./branch-E |
| 296 |
searching for changes |
| 297 |
adding changesets |
| 298 |
adding manifests |
| 299 |
adding file changes |
| 300 |
added 1 changesets with 1 changes to 1 files |
| 301 |
new changesets 27547f69f254 |
| 302 |
(run 'hg update' to get a working copy) |
| 303 |
pulling from ./branch-G |
| 304 |
no changes found |
| 305 |
pulling from ./branch-H |
| 306 |
no changes found |
| 307 |
$ hg log -R test-repo-rev -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 308 |
o B 1 |
| 309 |
| |
| 310 |
o A 0 |
| 311 |
|
| 312 |
|
| 313 |
pulling a branch head, the branch head resolve to different revision on the |
| 314 |
different repositories. |
| 315 |
|
| 316 |
$ hg pull -R test-repo-rev ./branch-E ./branch-G ./branch-H --rev default |
| 317 |
pulling from ./branch-E |
| 318 |
searching for changes |
| 319 |
adding changesets |
| 320 |
adding manifests |
| 321 |
adding file changes |
| 322 |
added 3 changesets with 3 changes to 3 files |
| 323 |
new changesets f838bfaca5c7:a603bfb5a83e |
| 324 |
(run 'hg update' to get a working copy) |
| 325 |
pulling from ./branch-G |
| 326 |
searching for changes |
| 327 |
adding changesets |
| 328 |
adding manifests |
| 329 |
adding file changes |
| 330 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 331 |
new changesets 2f3a4c5c1417:c521a06b234b |
| 332 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 333 |
pulling from ./branch-H |
| 334 |
searching for changes |
| 335 |
adding changesets |
| 336 |
adding manifests |
| 337 |
adding file changes |
| 338 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 339 |
new changesets 40faebb2ec45 |
| 340 |
(run 'hg heads .' to see heads, 'hg merge' to merge) |
| 341 |
$ hg log -R test-repo-rev -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 342 |
o H 7 |
| 343 |
| |
| 344 |
| o E 4 |
| 345 |
| | |
| 346 |
| o D 3 |
| 347 |
|/ |
| 348 |
o C 2 |
| 349 |
| |
| 350 |
| o G 6 |
| 351 |
| | |
| 352 |
| o F 5 |
| 353 |
|/ |
| 354 |
o B 1 |
| 355 |
| |
| 356 |
o A 0 |
| 357 |
|
| 358 |
|
| 359 |
push |
| 360 |
---- |
| 361 |
|
| 362 |
We only push a specific branch with --rev |
| 363 |
|
| 364 |
$ cp -R ./branch-E ./branch-E-push |
| 365 |
$ cp -R ./branch-G ./branch-G-push |
| 366 |
$ cp -R ./branch-H ./branch-H-push |
| 367 |
$ hg out -G -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push --rev default |
| 368 |
comparing with ./branch-E-push |
| 369 |
searching for changes |
| 370 |
o changeset: 7:40faebb2ec45 |
| 371 |
tag: tip |
| 372 |
parent: 2:f838bfaca5c7 |
| 373 |
user: test |
| 374 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 375 |
summary: H |
| 376 |
|
| 377 |
comparing with ./branch-G-push |
| 378 |
searching for changes |
| 379 |
o changeset: 7:40faebb2ec45 |
| 380 |
| tag: tip |
| 381 |
| parent: 2:f838bfaca5c7 |
| 382 |
| user: test |
| 383 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 384 |
| summary: H |
| 385 |
| |
| 386 |
o changeset: 2:f838bfaca5c7 |
| 387 |
user: test |
| 388 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 389 |
summary: C |
| 390 |
|
| 391 |
comparing with ./branch-H-push |
| 392 |
searching for changes |
| 393 |
no changes found |
| 394 |
$ hg bundle -R test-repo-bare bundle.hg ./branch-E-push ./branch-G-push ./branch-H-push --rev default |
| 395 |
searching for changes |
| 396 |
searching for changes |
| 397 |
searching for changes |
| 398 |
2 changesets found |
| 399 |
$ hg push --force -R test-repo-bare ./branch-E-push ./branch-G-push ./branch-H-push --rev default |
| 400 |
pushing to ./branch-E-push |
| 401 |
searching for changes |
| 402 |
adding changesets |
| 403 |
adding manifests |
| 404 |
adding file changes |
| 405 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 406 |
pushing to ./branch-G-push |
| 407 |
searching for changes |
| 408 |
adding changesets |
| 409 |
adding manifests |
| 410 |
adding file changes |
| 411 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 412 |
pushing to ./branch-H-push |
| 413 |
searching for changes |
| 414 |
no changes found |
| 415 |
$ hg log -R ./branch-E-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 416 |
o H 5 |
| 417 |
| |
| 418 |
| o E 4 |
| 419 |
| | |
| 420 |
| o D 3 |
| 421 |
|/ |
| 422 |
o C 2 |
| 423 |
| |
| 424 |
o B 1 |
| 425 |
| |
| 426 |
o A 0 |
| 427 |
|
| 428 |
$ hg log -R ./branch-G-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 429 |
o H 5 |
| 430 |
| |
| 431 |
o C 4 |
| 432 |
| |
| 433 |
| o G 3 |
| 434 |
| | |
| 435 |
| o F 2 |
| 436 |
|/ |
| 437 |
o B 1 |
| 438 |
| |
| 439 |
o A 0 |
| 440 |
|
| 441 |
$ hg log -R ./branch-H-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 442 |
o H 3 |
| 443 |
| |
| 444 |
o C 2 |
| 445 |
| |
| 446 |
o B 1 |
| 447 |
| |
| 448 |
o A 0 |
| 449 |
|
| 450 |
$ rm -rf ./*-push |
| 451 |
|
| 452 |
Same push, but the first one is a no-op |
| 453 |
|
| 454 |
$ cp -R ./branch-E ./branch-E-push |
| 455 |
$ cp -R ./branch-G ./branch-G-push |
| 456 |
$ cp -R ./branch-H ./branch-H-push |
| 457 |
$ hg out -G -R test-repo-bare ./branch-G-push ./branch-H-push ./branch-E-push --rev default |
| 458 |
comparing with ./branch-G-push |
| 459 |
searching for changes |
| 460 |
o changeset: 7:40faebb2ec45 |
| 461 |
| tag: tip |
| 462 |
| parent: 2:f838bfaca5c7 |
| 463 |
| user: test |
| 464 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 465 |
| summary: H |
| 466 |
| |
| 467 |
o changeset: 2:f838bfaca5c7 |
| 468 |
user: test |
| 469 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 470 |
summary: C |
| 471 |
|
| 472 |
comparing with ./branch-H-push |
| 473 |
searching for changes |
| 474 |
no changes found |
| 475 |
comparing with ./branch-E-push |
| 476 |
searching for changes |
| 477 |
o changeset: 7:40faebb2ec45 |
| 478 |
tag: tip |
| 479 |
parent: 2:f838bfaca5c7 |
| 480 |
user: test |
| 481 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 482 |
summary: H |
| 483 |
|
| 484 |
$ hg bundle -R test-repo-bare bundle.hg ./branch-G-push ./branch-H-push ./branch-E-push --rev default |
| 485 |
searching for changes |
| 486 |
searching for changes |
| 487 |
searching for changes |
| 488 |
2 changesets found |
| 489 |
$ hg push --force -R test-repo-bare ./branch-G-push ./branch-H-push ./branch-E-push --rev default |
| 490 |
pushing to ./branch-G-push |
| 491 |
searching for changes |
| 492 |
adding changesets |
| 493 |
adding manifests |
| 494 |
adding file changes |
| 495 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 496 |
pushing to ./branch-H-push |
| 497 |
searching for changes |
| 498 |
no changes found |
| 499 |
pushing to ./branch-E-push |
| 500 |
searching for changes |
| 501 |
adding changesets |
| 502 |
adding manifests |
| 503 |
adding file changes |
| 504 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 505 |
$ hg log -R ./branch-E-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 506 |
o H 5 |
| 507 |
| |
| 508 |
| o E 4 |
| 509 |
| | |
| 510 |
| o D 3 |
| 511 |
|/ |
| 512 |
o C 2 |
| 513 |
| |
| 514 |
o B 1 |
| 515 |
| |
| 516 |
o A 0 |
| 517 |
|
| 518 |
$ hg log -R ./branch-G-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 519 |
o H 5 |
| 520 |
| |
| 521 |
o C 4 |
| 522 |
| |
| 523 |
| o G 3 |
| 524 |
| | |
| 525 |
| o F 2 |
| 526 |
|/ |
| 527 |
o B 1 |
| 528 |
| |
| 529 |
o A 0 |
| 530 |
|
| 531 |
$ hg log -R ./branch-H-push -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 532 |
o H 3 |
| 533 |
| |
| 534 |
o C 2 |
| 535 |
| |
| 536 |
o B 1 |
| 537 |
| |
| 538 |
o A 0 |
| 539 |
|
| 540 |
$ rm -rf ./*-push |
| 541 |
|
| 542 |
|
| 543 |
Test with --update |
| 544 |
================== |
| 545 |
|
| 546 |
update without conflicts |
| 547 |
------------------------ |
| 548 |
|
| 549 |
$ hg clone main-repo test-repo-update --rev 0 |
| 550 |
adding changesets |
| 551 |
adding manifests |
| 552 |
adding file changes |
| 553 |
added 1 changesets with 1 changes to 1 files |
| 554 |
new changesets 4a2df7238c3b |
| 555 |
updating to branch default |
| 556 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 557 |
|
| 558 |
We update for each pull, so the first on get into a branch independant from the |
| 559 |
other and stay there. This is the expected behavior. |
| 560 |
|
| 561 |
$ hg log -R test-repo-update -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 562 |
@ A 0 |
| 563 |
|
| 564 |
$ hg pull -R test-repo-update ./branch-E ./branch-G ./branch-H --update |
| 565 |
pulling from ./branch-E |
| 566 |
searching for changes |
| 567 |
adding changesets |
| 568 |
adding manifests |
| 569 |
adding file changes |
| 570 |
added 4 changesets with 4 changes to 4 files |
| 571 |
new changesets 27547f69f254:a603bfb5a83e |
| 572 |
4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 573 |
pulling from ./branch-G |
| 574 |
searching for changes |
| 575 |
adding changesets |
| 576 |
adding manifests |
| 577 |
adding file changes |
| 578 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 579 |
new changesets 2f3a4c5c1417:c521a06b234b |
| 580 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 581 |
updated to "a603bfb5a83e: E" |
| 582 |
1 other heads for branch "default" |
| 583 |
pulling from ./branch-H |
| 584 |
searching for changes |
| 585 |
adding changesets |
| 586 |
adding manifests |
| 587 |
adding file changes |
| 588 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 589 |
new changesets 40faebb2ec45 |
| 590 |
0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 591 |
updated to "a603bfb5a83e: E" |
| 592 |
2 other heads for branch "default" |
| 593 |
$ hg log -R test-repo-update -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 594 |
o H 7 |
| 595 |
| |
| 596 |
| @ E 4 |
| 597 |
| | |
| 598 |
| o D 3 |
| 599 |
|/ |
| 600 |
o C 2 |
| 601 |
| |
| 602 |
| o G 6 |
| 603 |
| | |
| 604 |
| o F 5 |
| 605 |
|/ |
| 606 |
o B 1 |
| 607 |
| |
| 608 |
o A 0 |
| 609 |
|
| 610 |
|
| 611 |
update with conflicts |
| 612 |
--------------------- |
| 613 |
|
| 614 |
$ hg clone main-repo test-repo-conflict --rev 0 |
| 615 |
adding changesets |
| 616 |
adding manifests |
| 617 |
adding file changes |
| 618 |
added 1 changesets with 1 changes to 1 files |
| 619 |
new changesets 4a2df7238c3b |
| 620 |
updating to branch default |
| 621 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 622 |
|
| 623 |
The update has conflict and interrupt the pull. |
| 624 |
|
| 625 |
$ echo this-will-conflict > test-repo-conflict/D |
| 626 |
$ hg add -R test-repo-conflict test-repo-conflict/D |
| 627 |
$ hg log -R test-repo-conflict -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 628 |
@ A 0 |
| 629 |
|
| 630 |
$ hg pull -R test-repo-conflict ./branch-E ./branch-G ./branch-H --update |
| 631 |
pulling from ./branch-E |
| 632 |
searching for changes |
| 633 |
adding changesets |
| 634 |
adding manifests |
| 635 |
adding file changes |
| 636 |
added 4 changesets with 4 changes to 4 files |
| 637 |
new changesets 27547f69f254:a603bfb5a83e |
| 638 |
merging D |
| 639 |
warning: conflicts while merging D! (edit, then use 'hg resolve --mark') |
| 640 |
3 files updated, 0 files merged, 0 files removed, 1 files unresolved |
| 641 |
use 'hg resolve' to retry unresolved file merges |
| 642 |
[1] |
| 643 |
$ hg -R test-repo-conflict resolve -l |
| 644 |
U D |
| 645 |
$ hg log -R test-repo-conflict -T '{desc} {rev}\n' --rev 'sort(all(), "topo")' -G |
| 646 |
@ E 4 |
| 647 |
| |
| 648 |
o D 3 |
| 649 |
| |
| 650 |
o C 2 |
| 651 |
| |
| 652 |
o B 1 |
| 653 |
| |
| 654 |
% A 0 |
| 655 |
|
| 656 |
|
| 657 |
Testing multi-path definition |
| 658 |
---------------------------- |
| 659 |
|
| 660 |
$ hg clone main-repo repo-paths --rev 0 |
| 661 |
adding changesets |
| 662 |
adding manifests |
| 663 |
adding file changes |
| 664 |
added 1 changesets with 1 changes to 1 files |
| 665 |
new changesets 4a2df7238c3b |
| 666 |
updating to branch default |
| 667 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 668 |
$ cp -R ./branch-E ./branch-E-paths |
| 669 |
$ cp -R ./branch-G ./branch-G-paths |
| 670 |
$ cp -R ./branch-H ./branch-H-paths |
| 671 |
$ cat << EOF >> repo-paths/.hg/hgrc |
| 672 |
> [paths] |
| 673 |
> E=../branch-E-paths |
| 674 |
> G=../branch-G-paths |
| 675 |
> H=../branch-H-paths |
| 676 |
> EHG=path://E,path://H,path://G |
| 677 |
> EHG:multi-urls=yes |
| 678 |
> GEH=path://G,path://E,path://H |
| 679 |
> GEH:multi-urls=yes |
| 680 |
> EOF |
| 681 |
|
| 682 |
Do various operations and verify that order matters |
| 683 |
|
| 684 |
$ hg -R repo-paths push EHG --force |
| 685 |
pushing to $TESTTMP/branch-E-paths |
| 686 |
searching for changes |
| 687 |
no changes found |
| 688 |
pushing to $TESTTMP/branch-H-paths |
| 689 |
searching for changes |
| 690 |
no changes found |
| 691 |
pushing to $TESTTMP/branch-G-paths |
| 692 |
searching for changes |
| 693 |
no changes found |
| 694 |
[1] |
| 695 |
$ hg -R repo-paths push GEH --force |
| 696 |
pushing to $TESTTMP/branch-G-paths |
| 697 |
searching for changes |
| 698 |
no changes found |
| 699 |
pushing to $TESTTMP/branch-E-paths |
| 700 |
searching for changes |
| 701 |
no changes found |
| 702 |
pushing to $TESTTMP/branch-H-paths |
| 703 |
searching for changes |
| 704 |
no changes found |
| 705 |
[1] |
| 706 |
$ hg -R repo-paths push EHG GEH --force |
| 707 |
pushing to $TESTTMP/branch-E-paths |
| 708 |
searching for changes |
| 709 |
no changes found |
| 710 |
pushing to $TESTTMP/branch-H-paths |
| 711 |
searching for changes |
| 712 |
no changes found |
| 713 |
pushing to $TESTTMP/branch-G-paths |
| 714 |
searching for changes |
| 715 |
no changes found |
| 716 |
pushing to $TESTTMP/branch-G-paths |
| 717 |
searching for changes |
| 718 |
no changes found |
| 719 |
pushing to $TESTTMP/branch-E-paths |
| 720 |
searching for changes |
| 721 |
no changes found |
| 722 |
pushing to $TESTTMP/branch-H-paths |
| 723 |
searching for changes |
| 724 |
no changes found |
| 725 |
[1] |
| 726 |
$ hg -R repo-paths pull EHG |
| 727 |
pulling from $TESTTMP/branch-E-paths |
| 728 |
searching for changes |
| 729 |
adding changesets |
| 730 |
adding manifests |
| 731 |
adding file changes |
| 732 |
added 4 changesets with 4 changes to 4 files |
| 733 |
new changesets 27547f69f254:a603bfb5a83e |
| 734 |
(run 'hg update' to get a working copy) |
| 735 |
pulling from $TESTTMP/branch-H-paths |
| 736 |
searching for changes |
| 737 |
adding changesets |
| 738 |
adding manifests |
| 739 |
adding file changes |
| 740 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 741 |
new changesets 40faebb2ec45 |
| 742 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 743 |
pulling from $TESTTMP/branch-G-paths |
| 744 |
searching for changes |
| 745 |
adding changesets |
| 746 |
adding manifests |
| 747 |
adding file changes |
| 748 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 749 |
new changesets 2f3a4c5c1417:c521a06b234b |
| 750 |
(run 'hg heads .' to see heads, 'hg merge' to merge) |
| 751 |
$ hg -R repo-paths pull GEH |
| 752 |
pulling from $TESTTMP/branch-G-paths |
| 753 |
searching for changes |
| 754 |
no changes found |
| 755 |
pulling from $TESTTMP/branch-E-paths |
| 756 |
searching for changes |
| 757 |
no changes found |
| 758 |
pulling from $TESTTMP/branch-H-paths |
| 759 |
searching for changes |
| 760 |
no changes found |
| 761 |
$ hg -R repo-paths pull EHG GEH |
| 762 |
pulling from $TESTTMP/branch-E-paths |
| 763 |
searching for changes |
| 764 |
no changes found |
| 765 |
pulling from $TESTTMP/branch-H-paths |
| 766 |
searching for changes |
| 767 |
no changes found |
| 768 |
pulling from $TESTTMP/branch-G-paths |
| 769 |
searching for changes |
| 770 |
no changes found |
| 771 |
pulling from $TESTTMP/branch-G-paths |
| 772 |
searching for changes |
| 773 |
no changes found |
| 774 |
pulling from $TESTTMP/branch-E-paths |
| 775 |
searching for changes |
| 776 |
no changes found |
| 777 |
pulling from $TESTTMP/branch-H-paths |
| 778 |
searching for changes |
| 779 |
no changes found |
| 780 |
$ hg -R repo-paths push EHG --force |
| 781 |
pushing to $TESTTMP/branch-E-paths |
| 782 |
searching for changes |
| 783 |
adding changesets |
| 784 |
adding manifests |
| 785 |
adding file changes |
| 786 |
added 3 changesets with 3 changes to 3 files (+2 heads) |
| 787 |
pushing to $TESTTMP/branch-H-paths |
| 788 |
searching for changes |
| 789 |
adding changesets |
| 790 |
adding manifests |
| 791 |
adding file changes |
| 792 |
added 4 changesets with 4 changes to 4 files (+2 heads) |
| 793 |
pushing to $TESTTMP/branch-G-paths |
| 794 |
searching for changes |
| 795 |
adding changesets |
| 796 |
adding manifests |
| 797 |
adding file changes |
| 798 |
added 4 changesets with 4 changes to 4 files (+2 heads) |
| 799 |
$ hg -R repo-paths push GEH --force |
| 800 |
pushing to $TESTTMP/branch-G-paths |
| 801 |
searching for changes |
| 802 |
no changes found |
| 803 |
pushing to $TESTTMP/branch-E-paths |
| 804 |
searching for changes |
| 805 |
no changes found |
| 806 |
pushing to $TESTTMP/branch-H-paths |
| 807 |
searching for changes |
| 808 |
no changes found |
| 809 |
[1] |
| 810 |
$ hg -R repo-paths push EHG GEH --force |
| 811 |
pushing to $TESTTMP/branch-E-paths |
| 812 |
searching for changes |
| 813 |
no changes found |
| 814 |
pushing to $TESTTMP/branch-H-paths |
| 815 |
searching for changes |
| 816 |
no changes found |
| 817 |
pushing to $TESTTMP/branch-G-paths |
| 818 |
searching for changes |
| 819 |
no changes found |
| 820 |
pushing to $TESTTMP/branch-G-paths |
| 821 |
searching for changes |
| 822 |
no changes found |
| 823 |
pushing to $TESTTMP/branch-E-paths |
| 824 |
searching for changes |
| 825 |
no changes found |
| 826 |
pushing to $TESTTMP/branch-H-paths |
| 827 |
searching for changes |
| 828 |
no changes found |
| 829 |
[1] |