| 1 |
$ cat >> $HGRCPATH << EOF |
| 2 |
> [extensions] |
| 3 |
> drawdag=$TESTDIR/drawdag.py |
| 4 |
> phasereport=$TESTDIR/testlib/ext-phase-report.py |
| 5 |
> EOF |
| 6 |
|
| 7 |
$ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; } |
| 8 |
|
| 9 |
$ mkcommit() { |
| 10 |
> echo "$1" > "$1" |
| 11 |
> hg add "$1" |
| 12 |
> message="$1" |
| 13 |
> shift |
| 14 |
> hg ci -m "$message" $* |
| 15 |
> } |
| 16 |
|
| 17 |
$ hg init alpha |
| 18 |
$ cd alpha |
| 19 |
$ mkcommit a-A |
| 20 |
test-debug-phase: new rev 0: x -> 1 |
| 21 |
$ mkcommit a-B |
| 22 |
test-debug-phase: new rev 1: x -> 1 |
| 23 |
$ mkcommit a-C |
| 24 |
test-debug-phase: new rev 2: x -> 1 |
| 25 |
$ mkcommit a-D |
| 26 |
test-debug-phase: new rev 3: x -> 1 |
| 27 |
$ hgph |
| 28 |
@ 3 draft a-D - b555f63b6063 |
| 29 |
| |
| 30 |
o 2 draft a-C - 54acac6f23ab |
| 31 |
| |
| 32 |
o 1 draft a-B - 548a3d25dbf0 |
| 33 |
| |
| 34 |
o 0 draft a-A - 054250a37db4 |
| 35 |
|
| 36 |
|
| 37 |
$ hg init ../beta |
| 38 |
$ hg push -r 1 ../beta |
| 39 |
pushing to ../beta |
| 40 |
searching for changes |
| 41 |
adding changesets |
| 42 |
adding manifests |
| 43 |
adding file changes |
| 44 |
added 2 changesets with 2 changes to 2 files |
| 45 |
test-debug-phase: new rev 0: x -> 0 |
| 46 |
test-debug-phase: new rev 1: x -> 0 |
| 47 |
test-debug-phase: move rev 0: 1 -> 0 |
| 48 |
test-debug-phase: move rev 1: 1 -> 0 |
| 49 |
$ hgph |
| 50 |
@ 3 draft a-D - b555f63b6063 |
| 51 |
| |
| 52 |
o 2 draft a-C - 54acac6f23ab |
| 53 |
| |
| 54 |
o 1 public a-B - 548a3d25dbf0 |
| 55 |
| |
| 56 |
o 0 public a-A - 054250a37db4 |
| 57 |
|
| 58 |
|
| 59 |
$ cd ../beta |
| 60 |
$ hgph |
| 61 |
o 1 public a-B - 548a3d25dbf0 |
| 62 |
| |
| 63 |
o 0 public a-A - 054250a37db4 |
| 64 |
|
| 65 |
$ hg up -q |
| 66 |
$ mkcommit b-A |
| 67 |
test-debug-phase: new rev 2: x -> 1 |
| 68 |
$ hgph |
| 69 |
@ 2 draft b-A - f54f1bb90ff3 |
| 70 |
| |
| 71 |
o 1 public a-B - 548a3d25dbf0 |
| 72 |
| |
| 73 |
o 0 public a-A - 054250a37db4 |
| 74 |
|
| 75 |
$ hg pull ../alpha |
| 76 |
pulling from ../alpha |
| 77 |
searching for changes |
| 78 |
adding changesets |
| 79 |
adding manifests |
| 80 |
adding file changes |
| 81 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 82 |
new changesets 54acac6f23ab:b555f63b6063 |
| 83 |
test-debug-phase: new rev 3: x -> 0 |
| 84 |
test-debug-phase: new rev 4: x -> 0 |
| 85 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 86 |
$ hgph |
| 87 |
o 4 public a-D - b555f63b6063 |
| 88 |
| |
| 89 |
o 3 public a-C - 54acac6f23ab |
| 90 |
| |
| 91 |
| @ 2 draft b-A - f54f1bb90ff3 |
| 92 |
|/ |
| 93 |
o 1 public a-B - 548a3d25dbf0 |
| 94 |
| |
| 95 |
o 0 public a-A - 054250a37db4 |
| 96 |
|
| 97 |
|
| 98 |
pull did not updated ../alpha state. |
| 99 |
push from alpha to beta should update phase even if nothing is transferred |
| 100 |
|
| 101 |
$ cd ../alpha |
| 102 |
$ hgph # not updated by remote pull |
| 103 |
@ 3 draft a-D - b555f63b6063 |
| 104 |
| |
| 105 |
o 2 draft a-C - 54acac6f23ab |
| 106 |
| |
| 107 |
o 1 public a-B - 548a3d25dbf0 |
| 108 |
| |
| 109 |
o 0 public a-A - 054250a37db4 |
| 110 |
|
| 111 |
$ hg push -r 2 ../beta |
| 112 |
pushing to ../beta |
| 113 |
searching for changes |
| 114 |
no changes found |
| 115 |
test-debug-phase: move rev 2: 1 -> 0 |
| 116 |
[1] |
| 117 |
$ hgph |
| 118 |
@ 3 draft a-D - b555f63b6063 |
| 119 |
| |
| 120 |
o 2 public a-C - 54acac6f23ab |
| 121 |
| |
| 122 |
o 1 public a-B - 548a3d25dbf0 |
| 123 |
| |
| 124 |
o 0 public a-A - 054250a37db4 |
| 125 |
|
| 126 |
$ hg push ../beta |
| 127 |
pushing to ../beta |
| 128 |
searching for changes |
| 129 |
no changes found |
| 130 |
test-debug-phase: move rev 3: 1 -> 0 |
| 131 |
[1] |
| 132 |
$ hgph |
| 133 |
@ 3 public a-D - b555f63b6063 |
| 134 |
| |
| 135 |
o 2 public a-C - 54acac6f23ab |
| 136 |
| |
| 137 |
o 1 public a-B - 548a3d25dbf0 |
| 138 |
| |
| 139 |
o 0 public a-A - 054250a37db4 |
| 140 |
|
| 141 |
|
| 142 |
update must update phase of common changeset too |
| 143 |
|
| 144 |
$ hg pull ../beta # getting b-A |
| 145 |
pulling from ../beta |
| 146 |
searching for changes |
| 147 |
adding changesets |
| 148 |
adding manifests |
| 149 |
adding file changes |
| 150 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 151 |
new changesets f54f1bb90ff3 |
| 152 |
test-debug-phase: new rev 4: x -> 0 |
| 153 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 154 |
|
| 155 |
$ cd ../beta |
| 156 |
$ hgph # not updated by remote pull |
| 157 |
o 4 public a-D - b555f63b6063 |
| 158 |
| |
| 159 |
o 3 public a-C - 54acac6f23ab |
| 160 |
| |
| 161 |
| @ 2 draft b-A - f54f1bb90ff3 |
| 162 |
|/ |
| 163 |
o 1 public a-B - 548a3d25dbf0 |
| 164 |
| |
| 165 |
o 0 public a-A - 054250a37db4 |
| 166 |
|
| 167 |
$ hg pull ../alpha |
| 168 |
pulling from ../alpha |
| 169 |
searching for changes |
| 170 |
no changes found |
| 171 |
1 local changesets published |
| 172 |
test-debug-phase: move rev 2: 1 -> 0 |
| 173 |
$ hgph |
| 174 |
o 4 public a-D - b555f63b6063 |
| 175 |
| |
| 176 |
o 3 public a-C - 54acac6f23ab |
| 177 |
| |
| 178 |
| @ 2 public b-A - f54f1bb90ff3 |
| 179 |
|/ |
| 180 |
o 1 public a-B - 548a3d25dbf0 |
| 181 |
| |
| 182 |
o 0 public a-A - 054250a37db4 |
| 183 |
|
| 184 |
|
| 185 |
Publish configuration option |
| 186 |
---------------------------- |
| 187 |
|
| 188 |
Pull |
| 189 |
```` |
| 190 |
|
| 191 |
changegroup are added without phase movement |
| 192 |
|
| 193 |
$ hg bundle -a ../base.bundle |
| 194 |
5 changesets found |
| 195 |
$ cd .. |
| 196 |
$ hg init mu |
| 197 |
$ cd mu |
| 198 |
$ cat > .hg/hgrc << EOF |
| 199 |
> [phases] |
| 200 |
> publish=0 |
| 201 |
> EOF |
| 202 |
$ hg unbundle ../base.bundle |
| 203 |
adding changesets |
| 204 |
adding manifests |
| 205 |
adding file changes |
| 206 |
added 5 changesets with 5 changes to 5 files (+1 heads) |
| 207 |
new changesets 054250a37db4:b555f63b6063 (5 drafts) |
| 208 |
test-debug-phase: new rev 0: x -> 1 |
| 209 |
test-debug-phase: new rev 1: x -> 1 |
| 210 |
test-debug-phase: new rev 2: x -> 1 |
| 211 |
test-debug-phase: new rev 3: x -> 1 |
| 212 |
test-debug-phase: new rev 4: x -> 1 |
| 213 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 214 |
$ hgph |
| 215 |
o 4 draft a-D - b555f63b6063 |
| 216 |
| |
| 217 |
o 3 draft a-C - 54acac6f23ab |
| 218 |
| |
| 219 |
| o 2 draft b-A - f54f1bb90ff3 |
| 220 |
|/ |
| 221 |
o 1 draft a-B - 548a3d25dbf0 |
| 222 |
| |
| 223 |
o 0 draft a-A - 054250a37db4 |
| 224 |
|
| 225 |
$ cd .. |
| 226 |
|
| 227 |
Pulling from publish=False to publish=False does not move boundary. |
| 228 |
|
| 229 |
$ hg init nu |
| 230 |
$ cd nu |
| 231 |
$ cat > .hg/hgrc << EOF |
| 232 |
> [phases] |
| 233 |
> publish=0 |
| 234 |
> EOF |
| 235 |
$ hg pull ../mu -r 54acac6f23ab |
| 236 |
pulling from ../mu |
| 237 |
adding changesets |
| 238 |
adding manifests |
| 239 |
adding file changes |
| 240 |
added 3 changesets with 3 changes to 3 files |
| 241 |
new changesets 054250a37db4:54acac6f23ab (3 drafts) |
| 242 |
test-debug-phase: new rev 0: x -> 1 |
| 243 |
test-debug-phase: new rev 1: x -> 1 |
| 244 |
test-debug-phase: new rev 2: x -> 1 |
| 245 |
(run 'hg update' to get a working copy) |
| 246 |
$ hgph |
| 247 |
o 2 draft a-C - 54acac6f23ab |
| 248 |
| |
| 249 |
o 1 draft a-B - 548a3d25dbf0 |
| 250 |
| |
| 251 |
o 0 draft a-A - 054250a37db4 |
| 252 |
|
| 253 |
|
| 254 |
Even for common |
| 255 |
|
| 256 |
$ hg pull ../mu -r f54f1bb90ff3 |
| 257 |
pulling from ../mu |
| 258 |
searching for changes |
| 259 |
adding changesets |
| 260 |
adding manifests |
| 261 |
adding file changes |
| 262 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 263 |
new changesets f54f1bb90ff3 (1 drafts) |
| 264 |
test-debug-phase: new rev 3: x -> 1 |
| 265 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 266 |
$ hgph |
| 267 |
o 3 draft b-A - f54f1bb90ff3 |
| 268 |
| |
| 269 |
| o 2 draft a-C - 54acac6f23ab |
| 270 |
|/ |
| 271 |
o 1 draft a-B - 548a3d25dbf0 |
| 272 |
| |
| 273 |
o 0 draft a-A - 054250a37db4 |
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
Pulling from Publish=True to Publish=False move boundary in common set. |
| 278 |
we are in nu |
| 279 |
|
| 280 |
$ hg pull ../alpha -r b555f63b6063 |
| 281 |
pulling from ../alpha |
| 282 |
searching for changes |
| 283 |
adding changesets |
| 284 |
adding manifests |
| 285 |
adding file changes |
| 286 |
added 1 changesets with 1 changes to 1 files |
| 287 |
new changesets b555f63b6063 |
| 288 |
3 local changesets published |
| 289 |
test-debug-phase: move rev 0: 1 -> 0 |
| 290 |
test-debug-phase: move rev 1: 1 -> 0 |
| 291 |
test-debug-phase: move rev 2: 1 -> 0 |
| 292 |
test-debug-phase: new rev 4: x -> 0 |
| 293 |
(run 'hg update' to get a working copy) |
| 294 |
$ hgph # f54f1bb90ff3 stay draft, not ancestor of -r |
| 295 |
o 4 public a-D - b555f63b6063 |
| 296 |
| |
| 297 |
| o 3 draft b-A - f54f1bb90ff3 |
| 298 |
| | |
| 299 |
o | 2 public a-C - 54acac6f23ab |
| 300 |
|/ |
| 301 |
o 1 public a-B - 548a3d25dbf0 |
| 302 |
| |
| 303 |
o 0 public a-A - 054250a37db4 |
| 304 |
|
| 305 |
|
| 306 |
pulling from Publish=False to publish=False with some public |
| 307 |
|
| 308 |
$ hg up -q f54f1bb90ff3 |
| 309 |
$ mkcommit n-A |
| 310 |
test-debug-phase: new rev 5: x -> 1 |
| 311 |
$ mkcommit n-B |
| 312 |
test-debug-phase: new rev 6: x -> 1 |
| 313 |
$ hgph |
| 314 |
@ 6 draft n-B - 145e75495359 |
| 315 |
| |
| 316 |
o 5 draft n-A - d6bcb4f74035 |
| 317 |
| |
| 318 |
| o 4 public a-D - b555f63b6063 |
| 319 |
| | |
| 320 |
o | 3 draft b-A - f54f1bb90ff3 |
| 321 |
| | |
| 322 |
| o 2 public a-C - 54acac6f23ab |
| 323 |
|/ |
| 324 |
o 1 public a-B - 548a3d25dbf0 |
| 325 |
| |
| 326 |
o 0 public a-A - 054250a37db4 |
| 327 |
|
| 328 |
$ cd ../mu |
| 329 |
$ hg pull ../nu --confirm --config ui.interactive=True<<EOF |
| 330 |
> y |
| 331 |
> EOF |
| 332 |
pulling from ../nu |
| 333 |
searching for changes |
| 334 |
adding changesets |
| 335 |
adding manifests |
| 336 |
adding file changes |
| 337 |
adding 2 changesets with 2 changes to 2 files |
| 338 |
new changesets d6bcb4f74035:145e75495359 (2 drafts) |
| 339 |
4 local changesets will be published |
| 340 |
accept incoming changes (yn)? y |
| 341 |
added 2 changesets with 2 changes to 2 files |
| 342 |
new changesets d6bcb4f74035:145e75495359 (2 drafts) |
| 343 |
4 local changesets published |
| 344 |
test-debug-phase: move rev 0: 1 -> 0 |
| 345 |
test-debug-phase: move rev 1: 1 -> 0 |
| 346 |
test-debug-phase: move rev 3: 1 -> 0 |
| 347 |
test-debug-phase: move rev 4: 1 -> 0 |
| 348 |
test-debug-phase: new rev 5: x -> 1 |
| 349 |
test-debug-phase: new rev 6: x -> 1 |
| 350 |
(run 'hg update' to get a working copy) |
| 351 |
$ hgph |
| 352 |
o 6 draft n-B - 145e75495359 |
| 353 |
| |
| 354 |
o 5 draft n-A - d6bcb4f74035 |
| 355 |
| |
| 356 |
| o 4 public a-D - b555f63b6063 |
| 357 |
| | |
| 358 |
| o 3 public a-C - 54acac6f23ab |
| 359 |
| | |
| 360 |
o | 2 draft b-A - f54f1bb90ff3 |
| 361 |
|/ |
| 362 |
o 1 public a-B - 548a3d25dbf0 |
| 363 |
| |
| 364 |
o 0 public a-A - 054250a37db4 |
| 365 |
|
| 366 |
$ cd .. |
| 367 |
|
| 368 |
pulling into publish=True |
| 369 |
|
| 370 |
$ cd alpha |
| 371 |
$ hgph |
| 372 |
o 4 public b-A - f54f1bb90ff3 |
| 373 |
| |
| 374 |
| @ 3 public a-D - b555f63b6063 |
| 375 |
| | |
| 376 |
| o 2 public a-C - 54acac6f23ab |
| 377 |
|/ |
| 378 |
o 1 public a-B - 548a3d25dbf0 |
| 379 |
| |
| 380 |
o 0 public a-A - 054250a37db4 |
| 381 |
|
| 382 |
$ hg pull ../mu |
| 383 |
pulling from ../mu |
| 384 |
searching for changes |
| 385 |
adding changesets |
| 386 |
adding manifests |
| 387 |
adding file changes |
| 388 |
added 2 changesets with 2 changes to 2 files |
| 389 |
new changesets d6bcb4f74035:145e75495359 (2 drafts) |
| 390 |
test-debug-phase: new rev 5: x -> 1 |
| 391 |
test-debug-phase: new rev 6: x -> 1 |
| 392 |
(run 'hg update' to get a working copy) |
| 393 |
$ hgph |
| 394 |
o 6 draft n-B - 145e75495359 |
| 395 |
| |
| 396 |
o 5 draft n-A - d6bcb4f74035 |
| 397 |
| |
| 398 |
o 4 public b-A - f54f1bb90ff3 |
| 399 |
| |
| 400 |
| @ 3 public a-D - b555f63b6063 |
| 401 |
| | |
| 402 |
| o 2 public a-C - 54acac6f23ab |
| 403 |
|/ |
| 404 |
o 1 public a-B - 548a3d25dbf0 |
| 405 |
| |
| 406 |
o 0 public a-A - 054250a37db4 |
| 407 |
|
| 408 |
$ cd .. |
| 409 |
|
| 410 |
pulling back into original repo |
| 411 |
|
| 412 |
$ cd nu |
| 413 |
$ hg pull ../alpha |
| 414 |
pulling from ../alpha |
| 415 |
searching for changes |
| 416 |
no changes found |
| 417 |
3 local changesets published |
| 418 |
test-debug-phase: move rev 3: 1 -> 0 |
| 419 |
test-debug-phase: move rev 5: 1 -> 0 |
| 420 |
test-debug-phase: move rev 6: 1 -> 0 |
| 421 |
$ hgph |
| 422 |
@ 6 public n-B - 145e75495359 |
| 423 |
| |
| 424 |
o 5 public n-A - d6bcb4f74035 |
| 425 |
| |
| 426 |
| o 4 public a-D - b555f63b6063 |
| 427 |
| | |
| 428 |
o | 3 public b-A - f54f1bb90ff3 |
| 429 |
| | |
| 430 |
| o 2 public a-C - 54acac6f23ab |
| 431 |
|/ |
| 432 |
o 1 public a-B - 548a3d25dbf0 |
| 433 |
| |
| 434 |
o 0 public a-A - 054250a37db4 |
| 435 |
|
| 436 |
|
| 437 |
Push |
| 438 |
```` |
| 439 |
|
| 440 |
(inserted) |
| 441 |
|
| 442 |
Test that phase are pushed even when they are nothing to pus |
| 443 |
(this might be tested later bu are very convenient to not alter too much test) |
| 444 |
|
| 445 |
Push back to alpha |
| 446 |
|
| 447 |
$ hg push ../alpha # from nu |
| 448 |
pushing to ../alpha |
| 449 |
searching for changes |
| 450 |
no changes found |
| 451 |
test-debug-phase: move rev 5: 1 -> 0 |
| 452 |
test-debug-phase: move rev 6: 1 -> 0 |
| 453 |
[1] |
| 454 |
$ cd .. |
| 455 |
$ cd alpha |
| 456 |
$ hgph |
| 457 |
o 6 public n-B - 145e75495359 |
| 458 |
| |
| 459 |
o 5 public n-A - d6bcb4f74035 |
| 460 |
| |
| 461 |
o 4 public b-A - f54f1bb90ff3 |
| 462 |
| |
| 463 |
| @ 3 public a-D - b555f63b6063 |
| 464 |
| | |
| 465 |
| o 2 public a-C - 54acac6f23ab |
| 466 |
|/ |
| 467 |
o 1 public a-B - 548a3d25dbf0 |
| 468 |
| |
| 469 |
o 0 public a-A - 054250a37db4 |
| 470 |
|
| 471 |
|
| 472 |
(end insertion) |
| 473 |
|
| 474 |
|
| 475 |
initial setup |
| 476 |
|
| 477 |
$ hg log -G # of alpha |
| 478 |
o changeset: 6:145e75495359 |
| 479 |
| tag: tip |
| 480 |
| user: test |
| 481 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 482 |
| summary: n-B |
| 483 |
| |
| 484 |
o changeset: 5:d6bcb4f74035 |
| 485 |
| user: test |
| 486 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 487 |
| summary: n-A |
| 488 |
| |
| 489 |
o changeset: 4:f54f1bb90ff3 |
| 490 |
| parent: 1:548a3d25dbf0 |
| 491 |
| user: test |
| 492 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 493 |
| summary: b-A |
| 494 |
| |
| 495 |
| @ changeset: 3:b555f63b6063 |
| 496 |
| | user: test |
| 497 |
| | date: Thu Jan 01 00:00:00 1970 +0000 |
| 498 |
| | summary: a-D |
| 499 |
| | |
| 500 |
| o changeset: 2:54acac6f23ab |
| 501 |
|/ user: test |
| 502 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 503 |
| summary: a-C |
| 504 |
| |
| 505 |
o changeset: 1:548a3d25dbf0 |
| 506 |
| user: test |
| 507 |
| date: Thu Jan 01 00:00:00 1970 +0000 |
| 508 |
| summary: a-B |
| 509 |
| |
| 510 |
o changeset: 0:054250a37db4 |
| 511 |
user: test |
| 512 |
date: Thu Jan 01 00:00:00 1970 +0000 |
| 513 |
summary: a-A |
| 514 |
|
| 515 |
$ mkcommit a-E |
| 516 |
test-debug-phase: new rev 7: x -> 1 |
| 517 |
$ mkcommit a-F |
| 518 |
test-debug-phase: new rev 8: x -> 1 |
| 519 |
$ mkcommit a-G |
| 520 |
test-debug-phase: new rev 9: x -> 1 |
| 521 |
$ hg up d6bcb4f74035 -q |
| 522 |
$ mkcommit a-H |
| 523 |
test-debug-phase: new rev 10: x -> 1 |
| 524 |
created new head |
| 525 |
$ hgph |
| 526 |
@ 10 draft a-H - 967b449fbc94 |
| 527 |
| |
| 528 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 529 |
| | |
| 530 |
| o 8 draft a-F - b740e3e5c05d |
| 531 |
| | |
| 532 |
| o 7 draft a-E - e9f537e46dea |
| 533 |
| | |
| 534 |
+---o 6 public n-B - 145e75495359 |
| 535 |
| | |
| 536 |
o | 5 public n-A - d6bcb4f74035 |
| 537 |
| | |
| 538 |
o | 4 public b-A - f54f1bb90ff3 |
| 539 |
| | |
| 540 |
| o 3 public a-D - b555f63b6063 |
| 541 |
| | |
| 542 |
| o 2 public a-C - 54acac6f23ab |
| 543 |
|/ |
| 544 |
o 1 public a-B - 548a3d25dbf0 |
| 545 |
| |
| 546 |
o 0 public a-A - 054250a37db4 |
| 547 |
|
| 548 |
|
| 549 |
Pulling from bundle does not alter phases of changeset not present in the bundle |
| 550 |
|
| 551 |
$ hg bundle --base 1 -r 6 -r 3 ../partial-bundle.hg |
| 552 |
5 changesets found |
| 553 |
$ hg pull ../partial-bundle.hg |
| 554 |
pulling from ../partial-bundle.hg |
| 555 |
searching for changes |
| 556 |
no changes found |
| 557 |
$ hgph |
| 558 |
@ 10 draft a-H - 967b449fbc94 |
| 559 |
| |
| 560 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 561 |
| | |
| 562 |
| o 8 draft a-F - b740e3e5c05d |
| 563 |
| | |
| 564 |
| o 7 draft a-E - e9f537e46dea |
| 565 |
| | |
| 566 |
+---o 6 public n-B - 145e75495359 |
| 567 |
| | |
| 568 |
o | 5 public n-A - d6bcb4f74035 |
| 569 |
| | |
| 570 |
o | 4 public b-A - f54f1bb90ff3 |
| 571 |
| | |
| 572 |
| o 3 public a-D - b555f63b6063 |
| 573 |
| | |
| 574 |
| o 2 public a-C - 54acac6f23ab |
| 575 |
|/ |
| 576 |
o 1 public a-B - 548a3d25dbf0 |
| 577 |
| |
| 578 |
o 0 public a-A - 054250a37db4 |
| 579 |
|
| 580 |
|
| 581 |
Pushing to Publish=False (unknown changeset) |
| 582 |
|
| 583 |
$ hg push ../mu -r b740e3e5c05d # a-F |
| 584 |
pushing to ../mu |
| 585 |
searching for changes |
| 586 |
adding changesets |
| 587 |
adding manifests |
| 588 |
adding file changes |
| 589 |
added 2 changesets with 2 changes to 2 files |
| 590 |
test-debug-phase: new rev 7: x -> 1 |
| 591 |
test-debug-phase: new rev 8: x -> 1 |
| 592 |
$ hgph |
| 593 |
@ 10 draft a-H - 967b449fbc94 |
| 594 |
| |
| 595 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 596 |
| | |
| 597 |
| o 8 draft a-F - b740e3e5c05d |
| 598 |
| | |
| 599 |
| o 7 draft a-E - e9f537e46dea |
| 600 |
| | |
| 601 |
+---o 6 public n-B - 145e75495359 |
| 602 |
| | |
| 603 |
o | 5 public n-A - d6bcb4f74035 |
| 604 |
| | |
| 605 |
o | 4 public b-A - f54f1bb90ff3 |
| 606 |
| | |
| 607 |
| o 3 public a-D - b555f63b6063 |
| 608 |
| | |
| 609 |
| o 2 public a-C - 54acac6f23ab |
| 610 |
|/ |
| 611 |
o 1 public a-B - 548a3d25dbf0 |
| 612 |
| |
| 613 |
o 0 public a-A - 054250a37db4 |
| 614 |
|
| 615 |
|
| 616 |
$ cd ../mu |
| 617 |
$ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft, |
| 618 |
> # not ancestor of -r |
| 619 |
o 8 draft a-F - b740e3e5c05d |
| 620 |
| |
| 621 |
o 7 draft a-E - e9f537e46dea |
| 622 |
| |
| 623 |
| o 6 draft n-B - 145e75495359 |
| 624 |
| | |
| 625 |
| o 5 draft n-A - d6bcb4f74035 |
| 626 |
| | |
| 627 |
o | 4 public a-D - b555f63b6063 |
| 628 |
| | |
| 629 |
o | 3 public a-C - 54acac6f23ab |
| 630 |
| | |
| 631 |
| o 2 draft b-A - f54f1bb90ff3 |
| 632 |
|/ |
| 633 |
o 1 public a-B - 548a3d25dbf0 |
| 634 |
| |
| 635 |
o 0 public a-A - 054250a37db4 |
| 636 |
|
| 637 |
|
| 638 |
Pushing to Publish=True (unknown changeset) |
| 639 |
|
| 640 |
$ hg push ../beta -r b740e3e5c05d |
| 641 |
pushing to ../beta |
| 642 |
searching for changes |
| 643 |
adding changesets |
| 644 |
adding manifests |
| 645 |
adding file changes |
| 646 |
added 2 changesets with 2 changes to 2 files |
| 647 |
test-debug-phase: new rev 5: x -> 0 |
| 648 |
test-debug-phase: new rev 6: x -> 0 |
| 649 |
test-debug-phase: move rev 7: 1 -> 0 |
| 650 |
test-debug-phase: move rev 8: 1 -> 0 |
| 651 |
$ hgph # again f54f1bb90ff3, d6bcb4f74035 and 145e75495359 stay draft, |
| 652 |
> # not ancestor of -r |
| 653 |
o 8 public a-F - b740e3e5c05d |
| 654 |
| |
| 655 |
o 7 public a-E - e9f537e46dea |
| 656 |
| |
| 657 |
| o 6 draft n-B - 145e75495359 |
| 658 |
| | |
| 659 |
| o 5 draft n-A - d6bcb4f74035 |
| 660 |
| | |
| 661 |
o | 4 public a-D - b555f63b6063 |
| 662 |
| | |
| 663 |
o | 3 public a-C - 54acac6f23ab |
| 664 |
| | |
| 665 |
| o 2 draft b-A - f54f1bb90ff3 |
| 666 |
|/ |
| 667 |
o 1 public a-B - 548a3d25dbf0 |
| 668 |
| |
| 669 |
o 0 public a-A - 054250a37db4 |
| 670 |
|
| 671 |
|
| 672 |
Pushing to Publish=True (common changeset) |
| 673 |
|
| 674 |
$ cd ../beta |
| 675 |
$ hg push ../alpha |
| 676 |
pushing to ../alpha |
| 677 |
searching for changes |
| 678 |
no changes found |
| 679 |
test-debug-phase: move rev 7: 1 -> 0 |
| 680 |
test-debug-phase: move rev 8: 1 -> 0 |
| 681 |
[1] |
| 682 |
$ hgph |
| 683 |
o 6 public a-F - b740e3e5c05d |
| 684 |
| |
| 685 |
o 5 public a-E - e9f537e46dea |
| 686 |
| |
| 687 |
o 4 public a-D - b555f63b6063 |
| 688 |
| |
| 689 |
o 3 public a-C - 54acac6f23ab |
| 690 |
| |
| 691 |
| @ 2 public b-A - f54f1bb90ff3 |
| 692 |
|/ |
| 693 |
o 1 public a-B - 548a3d25dbf0 |
| 694 |
| |
| 695 |
o 0 public a-A - 054250a37db4 |
| 696 |
|
| 697 |
$ cd ../alpha |
| 698 |
$ hgph |
| 699 |
@ 10 draft a-H - 967b449fbc94 |
| 700 |
| |
| 701 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 702 |
| | |
| 703 |
| o 8 public a-F - b740e3e5c05d |
| 704 |
| | |
| 705 |
| o 7 public a-E - e9f537e46dea |
| 706 |
| | |
| 707 |
+---o 6 public n-B - 145e75495359 |
| 708 |
| | |
| 709 |
o | 5 public n-A - d6bcb4f74035 |
| 710 |
| | |
| 711 |
o | 4 public b-A - f54f1bb90ff3 |
| 712 |
| | |
| 713 |
| o 3 public a-D - b555f63b6063 |
| 714 |
| | |
| 715 |
| o 2 public a-C - 54acac6f23ab |
| 716 |
|/ |
| 717 |
o 1 public a-B - 548a3d25dbf0 |
| 718 |
| |
| 719 |
o 0 public a-A - 054250a37db4 |
| 720 |
|
| 721 |
|
| 722 |
Pushing to Publish=False (common changeset that change phase + unknown one) |
| 723 |
|
| 724 |
$ hg push ../mu -r 967b449fbc94 -f |
| 725 |
pushing to ../mu |
| 726 |
searching for changes |
| 727 |
adding changesets |
| 728 |
adding manifests |
| 729 |
adding file changes |
| 730 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 731 |
test-debug-phase: move rev 2: 1 -> 0 |
| 732 |
test-debug-phase: move rev 5: 1 -> 0 |
| 733 |
test-debug-phase: new rev 9: x -> 1 |
| 734 |
$ hgph |
| 735 |
@ 10 draft a-H - 967b449fbc94 |
| 736 |
| |
| 737 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 738 |
| | |
| 739 |
| o 8 public a-F - b740e3e5c05d |
| 740 |
| | |
| 741 |
| o 7 public a-E - e9f537e46dea |
| 742 |
| | |
| 743 |
+---o 6 public n-B - 145e75495359 |
| 744 |
| | |
| 745 |
o | 5 public n-A - d6bcb4f74035 |
| 746 |
| | |
| 747 |
o | 4 public b-A - f54f1bb90ff3 |
| 748 |
| | |
| 749 |
| o 3 public a-D - b555f63b6063 |
| 750 |
| | |
| 751 |
| o 2 public a-C - 54acac6f23ab |
| 752 |
|/ |
| 753 |
o 1 public a-B - 548a3d25dbf0 |
| 754 |
| |
| 755 |
o 0 public a-A - 054250a37db4 |
| 756 |
|
| 757 |
$ cd ../mu |
| 758 |
$ hgph # d6bcb4f74035 should have changed phase |
| 759 |
> # 145e75495359 is still draft. not ancestor of -r |
| 760 |
o 9 draft a-H - 967b449fbc94 |
| 761 |
| |
| 762 |
| o 8 public a-F - b740e3e5c05d |
| 763 |
| | |
| 764 |
| o 7 public a-E - e9f537e46dea |
| 765 |
| | |
| 766 |
+---o 6 draft n-B - 145e75495359 |
| 767 |
| | |
| 768 |
o | 5 public n-A - d6bcb4f74035 |
| 769 |
| | |
| 770 |
| o 4 public a-D - b555f63b6063 |
| 771 |
| | |
| 772 |
| o 3 public a-C - 54acac6f23ab |
| 773 |
| | |
| 774 |
o | 2 public b-A - f54f1bb90ff3 |
| 775 |
|/ |
| 776 |
o 1 public a-B - 548a3d25dbf0 |
| 777 |
| |
| 778 |
o 0 public a-A - 054250a37db4 |
| 779 |
|
| 780 |
|
| 781 |
|
| 782 |
Pushing to Publish=True (common changeset from publish=False) |
| 783 |
|
| 784 |
(in mu) |
| 785 |
$ hg push ../alpha |
| 786 |
pushing to ../alpha |
| 787 |
searching for changes |
| 788 |
no changes found |
| 789 |
test-debug-phase: move rev 10: 1 -> 0 |
| 790 |
test-debug-phase: move rev 6: 1 -> 0 |
| 791 |
test-debug-phase: move rev 9: 1 -> 0 |
| 792 |
[1] |
| 793 |
$ hgph |
| 794 |
o 9 public a-H - 967b449fbc94 |
| 795 |
| |
| 796 |
| o 8 public a-F - b740e3e5c05d |
| 797 |
| | |
| 798 |
| o 7 public a-E - e9f537e46dea |
| 799 |
| | |
| 800 |
+---o 6 public n-B - 145e75495359 |
| 801 |
| | |
| 802 |
o | 5 public n-A - d6bcb4f74035 |
| 803 |
| | |
| 804 |
| o 4 public a-D - b555f63b6063 |
| 805 |
| | |
| 806 |
| o 3 public a-C - 54acac6f23ab |
| 807 |
| | |
| 808 |
o | 2 public b-A - f54f1bb90ff3 |
| 809 |
|/ |
| 810 |
o 1 public a-B - 548a3d25dbf0 |
| 811 |
| |
| 812 |
o 0 public a-A - 054250a37db4 |
| 813 |
|
| 814 |
$ hgph -R ../alpha # a-H should have been synced to 0 |
| 815 |
@ 10 public a-H - 967b449fbc94 |
| 816 |
| |
| 817 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 818 |
| | |
| 819 |
| o 8 public a-F - b740e3e5c05d |
| 820 |
| | |
| 821 |
| o 7 public a-E - e9f537e46dea |
| 822 |
| | |
| 823 |
+---o 6 public n-B - 145e75495359 |
| 824 |
| | |
| 825 |
o | 5 public n-A - d6bcb4f74035 |
| 826 |
| | |
| 827 |
o | 4 public b-A - f54f1bb90ff3 |
| 828 |
| | |
| 829 |
| o 3 public a-D - b555f63b6063 |
| 830 |
| | |
| 831 |
| o 2 public a-C - 54acac6f23ab |
| 832 |
|/ |
| 833 |
o 1 public a-B - 548a3d25dbf0 |
| 834 |
| |
| 835 |
o 0 public a-A - 054250a37db4 |
| 836 |
|
| 837 |
|
| 838 |
|
| 839 |
Bare push with next changeset and common changeset needing sync (issue3575) |
| 840 |
|
| 841 |
(reset some stat on remote repo to avoid confusing other tests) |
| 842 |
|
| 843 |
$ hg -R ../alpha --config extensions.strip= strip --no-backup 967b449fbc94 |
| 844 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 845 |
$ hg phase --force --draft b740e3e5c05d 967b449fbc94 |
| 846 |
test-debug-phase: move rev 8: 0 -> 1 |
| 847 |
test-debug-phase: move rev 9: 0 -> 1 |
| 848 |
$ hg push -fv ../alpha |
| 849 |
pushing to ../alpha |
| 850 |
searching for changes |
| 851 |
1 changesets found |
| 852 |
uncompressed size of bundle content: |
| 853 |
180 (changelog) |
| 854 |
167 (manifests) |
| 855 |
133 a-H |
| 856 |
adding changesets |
| 857 |
adding manifests |
| 858 |
adding file changes |
| 859 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 860 |
test-debug-phase: new rev 10: x -> 0 |
| 861 |
test-debug-phase: move rev 8: 1 -> 0 |
| 862 |
test-debug-phase: move rev 9: 1 -> 0 |
| 863 |
$ hgph |
| 864 |
o 9 public a-H - 967b449fbc94 |
| 865 |
| |
| 866 |
| o 8 public a-F - b740e3e5c05d |
| 867 |
| | |
| 868 |
| o 7 public a-E - e9f537e46dea |
| 869 |
| | |
| 870 |
+---o 6 public n-B - 145e75495359 |
| 871 |
| | |
| 872 |
o | 5 public n-A - d6bcb4f74035 |
| 873 |
| | |
| 874 |
| o 4 public a-D - b555f63b6063 |
| 875 |
| | |
| 876 |
| o 3 public a-C - 54acac6f23ab |
| 877 |
| | |
| 878 |
o | 2 public b-A - f54f1bb90ff3 |
| 879 |
|/ |
| 880 |
o 1 public a-B - 548a3d25dbf0 |
| 881 |
| |
| 882 |
o 0 public a-A - 054250a37db4 |
| 883 |
|
| 884 |
|
| 885 |
$ hg -R ../alpha update 967b449fbc94 #for latter test consistency |
| 886 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 887 |
$ hgph -R ../alpha |
| 888 |
@ 10 public a-H - 967b449fbc94 |
| 889 |
| |
| 890 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 891 |
| | |
| 892 |
| o 8 public a-F - b740e3e5c05d |
| 893 |
| | |
| 894 |
| o 7 public a-E - e9f537e46dea |
| 895 |
| | |
| 896 |
+---o 6 public n-B - 145e75495359 |
| 897 |
| | |
| 898 |
o | 5 public n-A - d6bcb4f74035 |
| 899 |
| | |
| 900 |
o | 4 public b-A - f54f1bb90ff3 |
| 901 |
| | |
| 902 |
| o 3 public a-D - b555f63b6063 |
| 903 |
| | |
| 904 |
| o 2 public a-C - 54acac6f23ab |
| 905 |
|/ |
| 906 |
o 1 public a-B - 548a3d25dbf0 |
| 907 |
| |
| 908 |
o 0 public a-A - 054250a37db4 |
| 909 |
|
| 910 |
|
| 911 |
Discovery locally secret changeset on a remote repository: |
| 912 |
|
| 913 |
- should make it non-secret |
| 914 |
|
| 915 |
$ cd ../alpha |
| 916 |
$ mkcommit A-secret --config phases.new-commit=2 |
| 917 |
test-debug-phase: new rev 11: x -> 2 |
| 918 |
$ hgph |
| 919 |
@ 11 secret A-secret - 435b5d83910c |
| 920 |
| |
| 921 |
o 10 public a-H - 967b449fbc94 |
| 922 |
| |
| 923 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 924 |
| | |
| 925 |
| o 8 public a-F - b740e3e5c05d |
| 926 |
| | |
| 927 |
| o 7 public a-E - e9f537e46dea |
| 928 |
| | |
| 929 |
+---o 6 public n-B - 145e75495359 |
| 930 |
| | |
| 931 |
o | 5 public n-A - d6bcb4f74035 |
| 932 |
| | |
| 933 |
o | 4 public b-A - f54f1bb90ff3 |
| 934 |
| | |
| 935 |
| o 3 public a-D - b555f63b6063 |
| 936 |
| | |
| 937 |
| o 2 public a-C - 54acac6f23ab |
| 938 |
|/ |
| 939 |
o 1 public a-B - 548a3d25dbf0 |
| 940 |
| |
| 941 |
o 0 public a-A - 054250a37db4 |
| 942 |
|
| 943 |
$ hg bundle --base 'parents(.)' -r . ../secret-bundle.hg |
| 944 |
1 changesets found |
| 945 |
$ hg -R ../mu unbundle ../secret-bundle.hg |
| 946 |
adding changesets |
| 947 |
adding manifests |
| 948 |
adding file changes |
| 949 |
added 1 changesets with 1 changes to 1 files |
| 950 |
new changesets 435b5d83910c (1 drafts) |
| 951 |
test-debug-phase: new rev 10: x -> 1 |
| 952 |
(run 'hg update' to get a working copy) |
| 953 |
$ hgph -R ../mu |
| 954 |
o 10 draft A-secret - 435b5d83910c |
| 955 |
| |
| 956 |
o 9 public a-H - 967b449fbc94 |
| 957 |
| |
| 958 |
| o 8 public a-F - b740e3e5c05d |
| 959 |
| | |
| 960 |
| o 7 public a-E - e9f537e46dea |
| 961 |
| | |
| 962 |
+---o 6 public n-B - 145e75495359 |
| 963 |
| | |
| 964 |
o | 5 public n-A - d6bcb4f74035 |
| 965 |
| | |
| 966 |
| o 4 public a-D - b555f63b6063 |
| 967 |
| | |
| 968 |
| o 3 public a-C - 54acac6f23ab |
| 969 |
| | |
| 970 |
o | 2 public b-A - f54f1bb90ff3 |
| 971 |
|/ |
| 972 |
o 1 public a-B - 548a3d25dbf0 |
| 973 |
| |
| 974 |
o 0 public a-A - 054250a37db4 |
| 975 |
|
| 976 |
$ hg pull ../mu |
| 977 |
pulling from ../mu |
| 978 |
searching for changes |
| 979 |
no changes found |
| 980 |
test-debug-phase: move rev 11: 2 -> 1 |
| 981 |
$ hgph |
| 982 |
@ 11 draft A-secret - 435b5d83910c |
| 983 |
| |
| 984 |
o 10 public a-H - 967b449fbc94 |
| 985 |
| |
| 986 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 987 |
| | |
| 988 |
| o 8 public a-F - b740e3e5c05d |
| 989 |
| | |
| 990 |
| o 7 public a-E - e9f537e46dea |
| 991 |
| | |
| 992 |
+---o 6 public n-B - 145e75495359 |
| 993 |
| | |
| 994 |
o | 5 public n-A - d6bcb4f74035 |
| 995 |
| | |
| 996 |
o | 4 public b-A - f54f1bb90ff3 |
| 997 |
| | |
| 998 |
| o 3 public a-D - b555f63b6063 |
| 999 |
| | |
| 1000 |
| o 2 public a-C - 54acac6f23ab |
| 1001 |
|/ |
| 1002 |
o 1 public a-B - 548a3d25dbf0 |
| 1003 |
| |
| 1004 |
o 0 public a-A - 054250a37db4 |
| 1005 |
|
| 1006 |
|
| 1007 |
pushing a locally public and draft changesets remotely secret should make them |
| 1008 |
appear on the remote side. |
| 1009 |
|
| 1010 |
$ hg -R ../mu phase --secret --force 967b449fbc94 |
| 1011 |
test-debug-phase: move rev 9: 0 -> 2 |
| 1012 |
test-debug-phase: move rev 10: 1 -> 2 |
| 1013 |
$ hg push -r 435b5d83910c ../mu |
| 1014 |
pushing to ../mu |
| 1015 |
searching for changes |
| 1016 |
abort: push creates new remote head 435b5d83910c |
| 1017 |
(merge or see 'hg help push' for details about pushing new heads) |
| 1018 |
[20] |
| 1019 |
$ hg push -fr 435b5d83910c ../mu # because the push will create new visible head |
| 1020 |
pushing to ../mu |
| 1021 |
searching for changes |
| 1022 |
adding changesets |
| 1023 |
adding manifests |
| 1024 |
adding file changes |
| 1025 |
added 0 changesets with 0 changes to 2 files |
| 1026 |
test-debug-phase: move rev 9: 2 -> 0 |
| 1027 |
test-debug-phase: move rev 10: 2 -> 1 |
| 1028 |
$ hgph -R ../mu |
| 1029 |
o 10 draft A-secret - 435b5d83910c |
| 1030 |
| |
| 1031 |
o 9 public a-H - 967b449fbc94 |
| 1032 |
| |
| 1033 |
| o 8 public a-F - b740e3e5c05d |
| 1034 |
| | |
| 1035 |
| o 7 public a-E - e9f537e46dea |
| 1036 |
| | |
| 1037 |
+---o 6 public n-B - 145e75495359 |
| 1038 |
| | |
| 1039 |
o | 5 public n-A - d6bcb4f74035 |
| 1040 |
| | |
| 1041 |
| o 4 public a-D - b555f63b6063 |
| 1042 |
| | |
| 1043 |
| o 3 public a-C - 54acac6f23ab |
| 1044 |
| | |
| 1045 |
o | 2 public b-A - f54f1bb90ff3 |
| 1046 |
|/ |
| 1047 |
o 1 public a-B - 548a3d25dbf0 |
| 1048 |
| |
| 1049 |
o 0 public a-A - 054250a37db4 |
| 1050 |
|
| 1051 |
|
| 1052 |
pull new changeset with common draft locally |
| 1053 |
|
| 1054 |
$ hg up -q 967b449fbc94 # create a new root for draft |
| 1055 |
$ mkcommit 'alpha-more' |
| 1056 |
test-debug-phase: new rev 12: x -> 1 |
| 1057 |
created new head |
| 1058 |
$ hg push -fr . ../mu |
| 1059 |
pushing to ../mu |
| 1060 |
searching for changes |
| 1061 |
adding changesets |
| 1062 |
adding manifests |
| 1063 |
adding file changes |
| 1064 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 1065 |
test-debug-phase: new rev 11: x -> 1 |
| 1066 |
$ cd ../mu |
| 1067 |
$ hg phase --secret --force 1c5cfd894796 |
| 1068 |
test-debug-phase: move rev 11: 1 -> 2 |
| 1069 |
$ hg up -q 435b5d83910c |
| 1070 |
$ mkcommit 'mu-more' |
| 1071 |
test-debug-phase: new rev 12: x -> 1 |
| 1072 |
$ cd ../alpha |
| 1073 |
$ hg pull ../mu |
| 1074 |
pulling from ../mu |
| 1075 |
searching for changes |
| 1076 |
adding changesets |
| 1077 |
adding manifests |
| 1078 |
adding file changes |
| 1079 |
added 1 changesets with 1 changes to 1 files |
| 1080 |
new changesets 5237fb433fc8 (1 drafts) |
| 1081 |
test-debug-phase: new rev 13: x -> 1 |
| 1082 |
(run 'hg update' to get a working copy) |
| 1083 |
$ hgph |
| 1084 |
o 13 draft mu-more - 5237fb433fc8 |
| 1085 |
| |
| 1086 |
| @ 12 draft alpha-more - 1c5cfd894796 |
| 1087 |
| | |
| 1088 |
o | 11 draft A-secret - 435b5d83910c |
| 1089 |
|/ |
| 1090 |
o 10 public a-H - 967b449fbc94 |
| 1091 |
| |
| 1092 |
| o 9 draft a-G - 3e27b6f1eee1 |
| 1093 |
| | |
| 1094 |
| o 8 public a-F - b740e3e5c05d |
| 1095 |
| | |
| 1096 |
| o 7 public a-E - e9f537e46dea |
| 1097 |
| | |
| 1098 |
+---o 6 public n-B - 145e75495359 |
| 1099 |
| | |
| 1100 |
o | 5 public n-A - d6bcb4f74035 |
| 1101 |
| | |
| 1102 |
o | 4 public b-A - f54f1bb90ff3 |
| 1103 |
| | |
| 1104 |
| o 3 public a-D - b555f63b6063 |
| 1105 |
| | |
| 1106 |
| o 2 public a-C - 54acac6f23ab |
| 1107 |
|/ |
| 1108 |
o 1 public a-B - 548a3d25dbf0 |
| 1109 |
| |
| 1110 |
o 0 public a-A - 054250a37db4 |
| 1111 |
|
| 1112 |
|
| 1113 |
Test that test are properly ignored on remote event when existing locally |
| 1114 |
|
| 1115 |
$ cd .. |
| 1116 |
$ hg clone -qU -r b555f63b6063 -r f54f1bb90ff3 beta gamma |
| 1117 |
test-debug-phase: new rev 0: x -> 0 |
| 1118 |
test-debug-phase: new rev 1: x -> 0 |
| 1119 |
test-debug-phase: new rev 2: x -> 0 |
| 1120 |
test-debug-phase: new rev 3: x -> 0 |
| 1121 |
test-debug-phase: new rev 4: x -> 0 |
| 1122 |
|
| 1123 |
# pathological case are |
| 1124 |
# |
| 1125 |
# * secret remotely |
| 1126 |
# * known locally |
| 1127 |
# * repo have uncommon changeset |
| 1128 |
|
| 1129 |
$ hg -R beta phase --secret --force f54f1bb90ff3 |
| 1130 |
test-debug-phase: move rev 2: 0 -> 2 |
| 1131 |
$ hg -R gamma phase --draft --force f54f1bb90ff3 |
| 1132 |
test-debug-phase: move rev 2: 0 -> 1 |
| 1133 |
|
| 1134 |
$ cd gamma |
| 1135 |
$ hg pull ../beta |
| 1136 |
pulling from ../beta |
| 1137 |
searching for changes |
| 1138 |
adding changesets |
| 1139 |
adding manifests |
| 1140 |
adding file changes |
| 1141 |
added 2 changesets with 2 changes to 2 files |
| 1142 |
new changesets e9f537e46dea:b740e3e5c05d |
| 1143 |
test-debug-phase: new rev 5: x -> 0 |
| 1144 |
test-debug-phase: new rev 6: x -> 0 |
| 1145 |
(run 'hg update' to get a working copy) |
| 1146 |
$ hg phase f54f1bb90ff3 |
| 1147 |
2: draft |
| 1148 |
|
| 1149 |
same over the wire |
| 1150 |
|
| 1151 |
$ cd ../beta |
| 1152 |
$ hg serve -p $HGPORT -d --pid-file=../beta.pid -E ../beta-error.log |
| 1153 |
$ cat ../beta.pid >> $DAEMON_PIDS |
| 1154 |
$ cd ../gamma |
| 1155 |
|
| 1156 |
$ hg pull http://localhost:$HGPORT/ # bundle2+ |
| 1157 |
pulling from http://localhost:$HGPORT/ |
| 1158 |
searching for changes |
| 1159 |
no changes found |
| 1160 |
$ hg phase f54f1bb90ff3 |
| 1161 |
2: draft |
| 1162 |
|
| 1163 |
enforce bundle1 |
| 1164 |
|
| 1165 |
$ hg pull http://localhost:$HGPORT/ --config devel.legacy.exchange=bundle1 |
| 1166 |
pulling from http://localhost:$HGPORT/ |
| 1167 |
searching for changes |
| 1168 |
no changes found |
| 1169 |
$ hg phase f54f1bb90ff3 |
| 1170 |
2: draft |
| 1171 |
|
| 1172 |
check that secret local on both side are not synced to public |
| 1173 |
|
| 1174 |
$ hg push -r b555f63b6063 http://localhost:$HGPORT/ |
| 1175 |
pushing to http://localhost:$HGPORT/ |
| 1176 |
searching for changes |
| 1177 |
no changes found |
| 1178 |
[1] |
| 1179 |
$ hg phase f54f1bb90ff3 |
| 1180 |
2: draft |
| 1181 |
|
| 1182 |
$ killdaemons.py |
| 1183 |
|
| 1184 |
put the changeset in the draft state again |
| 1185 |
(first test after this one expect to be able to copy) |
| 1186 |
|
| 1187 |
$ cd .. |
| 1188 |
|
| 1189 |
|
| 1190 |
Test Clone behavior |
| 1191 |
|
| 1192 |
A. Clone without secret changeset |
| 1193 |
|
| 1194 |
1. cloning non-publishing repository |
| 1195 |
(Phase should be preserved) |
| 1196 |
|
| 1197 |
# make sure there is no secret so we can use a copy clone |
| 1198 |
|
| 1199 |
$ hg -R mu phase --draft 'secret()' |
| 1200 |
test-debug-phase: move rev 11: 2 -> 1 |
| 1201 |
|
| 1202 |
$ hg clone -U mu Tau |
| 1203 |
$ hgph -R Tau |
| 1204 |
o 12 draft mu-more - 5237fb433fc8 |
| 1205 |
| |
| 1206 |
| o 11 draft alpha-more - 1c5cfd894796 |
| 1207 |
| | |
| 1208 |
o | 10 draft A-secret - 435b5d83910c |
| 1209 |
|/ |
| 1210 |
o 9 public a-H - 967b449fbc94 |
| 1211 |
| |
| 1212 |
| o 8 public a-F - b740e3e5c05d |
| 1213 |
| | |
| 1214 |
| o 7 public a-E - e9f537e46dea |
| 1215 |
| | |
| 1216 |
+---o 6 public n-B - 145e75495359 |
| 1217 |
| | |
| 1218 |
o | 5 public n-A - d6bcb4f74035 |
| 1219 |
| | |
| 1220 |
| o 4 public a-D - b555f63b6063 |
| 1221 |
| | |
| 1222 |
| o 3 public a-C - 54acac6f23ab |
| 1223 |
| | |
| 1224 |
o | 2 public b-A - f54f1bb90ff3 |
| 1225 |
|/ |
| 1226 |
o 1 public a-B - 548a3d25dbf0 |
| 1227 |
| |
| 1228 |
o 0 public a-A - 054250a37db4 |
| 1229 |
|
| 1230 |
|
| 1231 |
2. cloning publishing repository |
| 1232 |
|
| 1233 |
(everything should be public) |
| 1234 |
|
| 1235 |
$ hg clone -U alpha Upsilon |
| 1236 |
$ hgph -R Upsilon |
| 1237 |
o 13 public mu-more - 5237fb433fc8 |
| 1238 |
| |
| 1239 |
| o 12 public alpha-more - 1c5cfd894796 |
| 1240 |
| | |
| 1241 |
o | 11 public A-secret - 435b5d83910c |
| 1242 |
|/ |
| 1243 |
o 10 public a-H - 967b449fbc94 |
| 1244 |
| |
| 1245 |
| o 9 public a-G - 3e27b6f1eee1 |
| 1246 |
| | |
| 1247 |
| o 8 public a-F - b740e3e5c05d |
| 1248 |
| | |
| 1249 |
| o 7 public a-E - e9f537e46dea |
| 1250 |
| | |
| 1251 |
+---o 6 public n-B - 145e75495359 |
| 1252 |
| | |
| 1253 |
o | 5 public n-A - d6bcb4f74035 |
| 1254 |
| | |
| 1255 |
o | 4 public b-A - f54f1bb90ff3 |
| 1256 |
| | |
| 1257 |
| o 3 public a-D - b555f63b6063 |
| 1258 |
| | |
| 1259 |
| o 2 public a-C - 54acac6f23ab |
| 1260 |
|/ |
| 1261 |
o 1 public a-B - 548a3d25dbf0 |
| 1262 |
| |
| 1263 |
o 0 public a-A - 054250a37db4 |
| 1264 |
|
| 1265 |
#if unix-permissions no-root |
| 1266 |
|
| 1267 |
Pushing From an unlockable repo |
| 1268 |
-------------------------------- |
| 1269 |
(issue3684) |
| 1270 |
|
| 1271 |
Unability to lock the source repo should not prevent the push. It will prevent |
| 1272 |
the retrieval of remote phase during push. For example, pushing to a publishing |
| 1273 |
server won't turn changeset public. |
| 1274 |
|
| 1275 |
1. Test that push is not prevented |
| 1276 |
|
| 1277 |
$ hg init Phi |
| 1278 |
$ cd Upsilon |
| 1279 |
$ chmod -R -w .hg |
| 1280 |
$ hg push ../Phi |
| 1281 |
pushing to ../Phi |
| 1282 |
searching for changes |
| 1283 |
adding changesets |
| 1284 |
adding manifests |
| 1285 |
adding file changes |
| 1286 |
added 14 changesets with 14 changes to 14 files (+3 heads) |
| 1287 |
test-debug-phase: new rev 0: x -> 0 |
| 1288 |
test-debug-phase: new rev 1: x -> 0 |
| 1289 |
test-debug-phase: new rev 2: x -> 0 |
| 1290 |
test-debug-phase: new rev 3: x -> 0 |
| 1291 |
test-debug-phase: new rev 4: x -> 0 |
| 1292 |
test-debug-phase: new rev 5: x -> 0 |
| 1293 |
test-debug-phase: new rev 6: x -> 0 |
| 1294 |
test-debug-phase: new rev 7: x -> 0 |
| 1295 |
test-debug-phase: new rev 8: x -> 0 |
| 1296 |
test-debug-phase: new rev 9: x -> 0 |
| 1297 |
test-debug-phase: new rev 10: x -> 0 |
| 1298 |
test-debug-phase: new rev 11: x -> 0 |
| 1299 |
test-debug-phase: new rev 12: x -> 0 |
| 1300 |
test-debug-phase: new rev 13: x -> 0 |
| 1301 |
$ chmod -R +w .hg |
| 1302 |
|
| 1303 |
2. Test that failed phases movement are reported |
| 1304 |
|
| 1305 |
$ hg phase --force --draft 3 |
| 1306 |
test-debug-phase: move rev 3: 0 -> 1 |
| 1307 |
test-debug-phase: move rev 7: 0 -> 1 |
| 1308 |
test-debug-phase: move rev 8: 0 -> 1 |
| 1309 |
test-debug-phase: move rev 9: 0 -> 1 |
| 1310 |
$ chmod -R -w .hg |
| 1311 |
$ hg push ../Phi |
| 1312 |
pushing to ../Phi |
| 1313 |
searching for changes |
| 1314 |
no changes found |
| 1315 |
cannot lock source repo, skipping local public phase update |
| 1316 |
[1] |
| 1317 |
$ chmod -R +w .hg |
| 1318 |
|
| 1319 |
3. Test that push is prevented if lock was already acquired (not a permission |
| 1320 |
error, but EEXIST) |
| 1321 |
|
| 1322 |
$ touch .hg/store/lock |
| 1323 |
$ hg push ../Phi --config ui.timeout=1 --config ui.timeout.warn=0 |
| 1324 |
pushing to ../Phi |
| 1325 |
waiting for lock on repository $TESTTMP/Upsilon held by '' |
| 1326 |
abort: repository $TESTTMP/Upsilon: timed out waiting for lock held by '' |
| 1327 |
(lock might be very busy) |
| 1328 |
[20] |
| 1329 |
$ rm .hg/store/lock |
| 1330 |
|
| 1331 |
$ cd .. |
| 1332 |
|
| 1333 |
#endif |
| 1334 |
|
| 1335 |
Test that clone behaves like pull and doesn't publish changesets as plain push |
| 1336 |
does. The conditional output accounts for changes in the conditional block |
| 1337 |
above. |
| 1338 |
|
| 1339 |
#if unix-permissions no-root |
| 1340 |
$ hg -R Upsilon phase -q --force --draft 2 |
| 1341 |
test-debug-phase: move rev 2: 0 -> 1 |
| 1342 |
#else |
| 1343 |
$ hg -R Upsilon phase -q --force --draft 2 |
| 1344 |
test-debug-phase: move rev 2: 0 -> 1 |
| 1345 |
test-debug-phase: move rev 3: 0 -> 1 |
| 1346 |
test-debug-phase: move rev 7: 0 -> 1 |
| 1347 |
test-debug-phase: move rev 8: 0 -> 1 |
| 1348 |
test-debug-phase: move rev 9: 0 -> 1 |
| 1349 |
#endif |
| 1350 |
|
| 1351 |
$ hg clone -q Upsilon Pi -r 7 |
| 1352 |
test-debug-phase: new rev 0: x -> 0 |
| 1353 |
test-debug-phase: new rev 1: x -> 0 |
| 1354 |
test-debug-phase: new rev 2: x -> 0 |
| 1355 |
test-debug-phase: new rev 3: x -> 0 |
| 1356 |
test-debug-phase: new rev 4: x -> 0 |
| 1357 |
$ hgph Upsilon -r 'min(draft())' |
| 1358 |
o 2 draft a-C - 54acac6f23ab |
| 1359 |
| |
| 1360 |
~ |
| 1361 |
|
| 1362 |
$ hg -R Upsilon push Pi -r 7 |
| 1363 |
pushing to Pi |
| 1364 |
searching for changes |
| 1365 |
no changes found |
| 1366 |
test-debug-phase: move rev 2: 1 -> 0 |
| 1367 |
test-debug-phase: move rev 3: 1 -> 0 |
| 1368 |
test-debug-phase: move rev 7: 1 -> 0 |
| 1369 |
[1] |
| 1370 |
$ hgph Upsilon -r 'min(draft())' |
| 1371 |
o 8 draft a-F - b740e3e5c05d |
| 1372 |
| |
| 1373 |
~ |
| 1374 |
|
| 1375 |
$ hg -R Upsilon push Pi -r 8 |
| 1376 |
pushing to Pi |
| 1377 |
searching for changes |
| 1378 |
adding changesets |
| 1379 |
adding manifests |
| 1380 |
adding file changes |
| 1381 |
added 1 changesets with 1 changes to 1 files |
| 1382 |
test-debug-phase: new rev 5: x -> 0 |
| 1383 |
test-debug-phase: move rev 8: 1 -> 0 |
| 1384 |
|
| 1385 |
$ hgph Upsilon -r 'min(draft())' |
| 1386 |
o 9 draft a-G - 3e27b6f1eee1 |
| 1387 |
| |
| 1388 |
~ |
| 1389 |
|
| 1390 |
Test phases exchange when a phaseroot is on a merge |
| 1391 |
|
| 1392 |
$ hg init mergetest |
| 1393 |
$ cd mergetest |
| 1394 |
> cat > .hg/hgrc << EOF |
| 1395 |
> [phases] |
| 1396 |
> publish = false |
| 1397 |
> EOF |
| 1398 |
|
| 1399 |
$ hg debugdrawdag << EOF |
| 1400 |
> E Z |
| 1401 |
> |\| |
| 1402 |
> D Y |
| 1403 |
> | | |
| 1404 |
> C X |
| 1405 |
> |/ |
| 1406 |
> B |
| 1407 |
> | |
| 1408 |
> A |
| 1409 |
> EOF |
| 1410 |
test-debug-phase: new rev 0: x -> 1 |
| 1411 |
test-debug-phase: new rev 1: x -> 1 |
| 1412 |
test-debug-phase: new rev 2: x -> 1 |
| 1413 |
test-debug-phase: new rev 3: x -> 1 |
| 1414 |
test-debug-phase: new rev 4: x -> 1 |
| 1415 |
test-debug-phase: new rev 5: x -> 1 |
| 1416 |
test-debug-phase: new rev 6: x -> 1 |
| 1417 |
test-debug-phase: new rev 7: x -> 1 |
| 1418 |
|
| 1419 |
$ hg phase --public -r D |
| 1420 |
test-debug-phase: move rev 0: 1 -> 0 |
| 1421 |
test-debug-phase: move rev 1: 1 -> 0 |
| 1422 |
test-debug-phase: move rev 2: 1 -> 0 |
| 1423 |
test-debug-phase: move rev 4: 1 -> 0 |
| 1424 |
|
| 1425 |
$ hg log -G -T '{shortest(node, 5)} {phase}' |
| 1426 |
o bb947 draft |
| 1427 |
| |
| 1428 |
| o 5ac28 draft |
| 1429 |
|/| |
| 1430 |
o | 13b7b draft |
| 1431 |
| | |
| 1432 |
| o f5853 public |
| 1433 |
| | |
| 1434 |
o | c67c4 draft |
| 1435 |
| | |
| 1436 |
| o 26805 public |
| 1437 |
|/ |
| 1438 |
o 11247 public |
| 1439 |
| |
| 1440 |
o 426ba public |
| 1441 |
|
| 1442 |
$ cd .. |
| 1443 |
|
| 1444 |
Works with default settings |
| 1445 |
|
| 1446 |
$ hg -R mergetest serve -p $HGPORT -d --pid-file=hg.pid |
| 1447 |
$ cat hg.pid >> $DAEMON_PIDS |
| 1448 |
|
| 1449 |
$ hg clone -U http://localhost:$HGPORT mergetest-normal |
| 1450 |
requesting all changes |
| 1451 |
adding changesets |
| 1452 |
adding manifests |
| 1453 |
adding file changes |
| 1454 |
added 8 changesets with 7 changes to 7 files (+1 heads) |
| 1455 |
new changesets 426bada5c675:bb94757e651a (4 drafts) |
| 1456 |
test-debug-phase: new rev 0: x -> 0 |
| 1457 |
test-debug-phase: new rev 1: x -> 0 |
| 1458 |
test-debug-phase: new rev 2: x -> 0 |
| 1459 |
test-debug-phase: new rev 3: x -> 1 |
| 1460 |
test-debug-phase: new rev 4: x -> 0 |
| 1461 |
test-debug-phase: new rev 5: x -> 1 |
| 1462 |
test-debug-phase: new rev 6: x -> 1 |
| 1463 |
test-debug-phase: new rev 7: x -> 1 |
| 1464 |
|
| 1465 |
$ hg -R mergetest-normal log -G -T '{shortest(node, 5)} {phase}' |
| 1466 |
o bb947 draft |
| 1467 |
| |
| 1468 |
| o 5ac28 draft |
| 1469 |
|/| |
| 1470 |
o | 13b7b draft |
| 1471 |
| | |
| 1472 |
| o f5853 public |
| 1473 |
| | |
| 1474 |
o | c67c4 draft |
| 1475 |
| | |
| 1476 |
| o 26805 public |
| 1477 |
|/ |
| 1478 |
o 11247 public |
| 1479 |
| |
| 1480 |
o 426ba public |
| 1481 |
|
| 1482 |
$ killdaemons.py |
| 1483 |
|
| 1484 |
With legacy listkeys over bundle2 |
| 1485 |
(issue 5939: public phase was lost on 26805 and f5853 before, due to a bug |
| 1486 |
of phase heads computation) |
| 1487 |
|
| 1488 |
$ hg -R mergetest --config devel.legacy.exchange=phases serve -p $HGPORT -d --pid-file=hg.pid |
| 1489 |
$ cat hg.pid >> $DAEMON_PIDS |
| 1490 |
|
| 1491 |
$ hg clone -U http://localhost:$HGPORT mergetest-nobinarypart |
| 1492 |
requesting all changes |
| 1493 |
adding changesets |
| 1494 |
adding manifests |
| 1495 |
adding file changes |
| 1496 |
added 8 changesets with 7 changes to 7 files (+1 heads) |
| 1497 |
new changesets 426bada5c675:bb94757e651a (4 drafts) |
| 1498 |
test-debug-phase: new rev 0: x -> 0 |
| 1499 |
test-debug-phase: new rev 1: x -> 0 |
| 1500 |
test-debug-phase: new rev 2: x -> 0 |
| 1501 |
test-debug-phase: new rev 3: x -> 1 |
| 1502 |
test-debug-phase: new rev 4: x -> 0 |
| 1503 |
test-debug-phase: new rev 5: x -> 1 |
| 1504 |
test-debug-phase: new rev 6: x -> 1 |
| 1505 |
test-debug-phase: new rev 7: x -> 1 |
| 1506 |
|
| 1507 |
$ hg -R mergetest-nobinarypart log -G -T '{shortest(node, 5)} {phase}' |
| 1508 |
o bb947 draft |
| 1509 |
| |
| 1510 |
| o 5ac28 draft |
| 1511 |
|/| |
| 1512 |
o | 13b7b draft |
| 1513 |
| | |
| 1514 |
| o f5853 public |
| 1515 |
| | |
| 1516 |
o | c67c4 draft |
| 1517 |
| | |
| 1518 |
| o 26805 public |
| 1519 |
|/ |
| 1520 |
o 11247 public |
| 1521 |
| |
| 1522 |
o 426ba public |
| 1523 |
|
| 1524 |
$ killdaemons.py |
| 1525 |
|
| 1526 |
Without bundle2 |
| 1527 |
(issue 5939: public phase was lost on 26805 and f5853 before, due to a bug |
| 1528 |
of phase heads computation) |
| 1529 |
|
| 1530 |
$ hg -R mergetest serve -p $HGPORT -d --pid-file=hg.pid |
| 1531 |
$ cat hg.pid >> $DAEMON_PIDS |
| 1532 |
|
| 1533 |
$ hg --config devel.legacy.exchange=bundle1 clone -U http://localhost:$HGPORT mergetest-bundle1 |
| 1534 |
requesting all changes |
| 1535 |
adding changesets |
| 1536 |
adding manifests |
| 1537 |
adding file changes |
| 1538 |
added 8 changesets with 7 changes to 7 files (+1 heads) |
| 1539 |
new changesets 426bada5c675:bb94757e651a (4 drafts) |
| 1540 |
test-debug-phase: new rev 0: x -> 0 |
| 1541 |
test-debug-phase: new rev 1: x -> 0 |
| 1542 |
test-debug-phase: new rev 2: x -> 0 |
| 1543 |
test-debug-phase: new rev 3: x -> 1 |
| 1544 |
test-debug-phase: new rev 4: x -> 0 |
| 1545 |
test-debug-phase: new rev 5: x -> 1 |
| 1546 |
test-debug-phase: new rev 6: x -> 1 |
| 1547 |
test-debug-phase: new rev 7: x -> 1 |
| 1548 |
|
| 1549 |
$ hg -R mergetest-bundle1 log -G -T '{shortest(node, 5)} {phase}' |
| 1550 |
o bb947 draft |
| 1551 |
| |
| 1552 |
| o 5ac28 draft |
| 1553 |
|/| |
| 1554 |
o | 13b7b draft |
| 1555 |
| | |
| 1556 |
| o f5853 public |
| 1557 |
| | |
| 1558 |
o | c67c4 draft |
| 1559 |
| | |
| 1560 |
| o 26805 public |
| 1561 |
|/ |
| 1562 |
o 11247 public |
| 1563 |
| |
| 1564 |
o 426ba public |
| 1565 |
|
| 1566 |
$ killdaemons.py |
| 1567 |
|
| 1568 |
|
| 1569 |
auto-publish config |
| 1570 |
------------------- |
| 1571 |
|
| 1572 |
$ hg init auto-publish-orig |
| 1573 |
$ hg clone -q auto-publish-orig auto-publish-clone |
| 1574 |
$ cd auto-publish-clone |
| 1575 |
$ mkcommit a-p-A |
| 1576 |
test-debug-phase: new rev 0: x -> 1 |
| 1577 |
$ mkcommit a-p-B |
| 1578 |
test-debug-phase: new rev 1: x -> 1 |
| 1579 |
|
| 1580 |
abort behavior |
| 1581 |
|
| 1582 |
$ hg push --config experimental.auto-publish=abort |
| 1583 |
pushing to $TESTTMP/auto-publish-orig |
| 1584 |
abort: push would publish 2 changesets |
| 1585 |
(use --publish or adjust 'experimental.auto-publish' config) |
| 1586 |
[255] |
| 1587 |
$ hg push -r '.^' --config experimental.auto-publish=abort |
| 1588 |
pushing to $TESTTMP/auto-publish-orig |
| 1589 |
abort: push would publish 1 changesets |
| 1590 |
(use --publish or adjust 'experimental.auto-publish' config) |
| 1591 |
[255] |
| 1592 |
|
| 1593 |
trying to push a secret changeset doesn't confuse auto-publish |
| 1594 |
|
| 1595 |
$ hg phase --secret --force |
| 1596 |
test-debug-phase: move rev 1: 1 -> 2 |
| 1597 |
|
| 1598 |
$ hg push --config experimental.auto-publish=abort |
| 1599 |
pushing to $TESTTMP/auto-publish-orig |
| 1600 |
abort: push would publish 1 changesets |
| 1601 |
(use --publish or adjust 'experimental.auto-publish' config) |
| 1602 |
[255] |
| 1603 |
$ hg push -r . --config experimental.auto-publish=abort |
| 1604 |
pushing to $TESTTMP/auto-publish-orig |
| 1605 |
abort: push would publish 1 changesets |
| 1606 |
(use --publish or adjust 'experimental.auto-publish' config) |
| 1607 |
[255] |
| 1608 |
|
| 1609 |
$ hg phase --draft |
| 1610 |
test-debug-phase: move rev 1: 2 -> 1 |
| 1611 |
|
| 1612 |
--publish flag makes push succeed |
| 1613 |
|
| 1614 |
$ hg push -r '.^' --publish --config experimental.auto-publish=abort |
| 1615 |
pushing to $TESTTMP/auto-publish-orig |
| 1616 |
searching for changes |
| 1617 |
adding changesets |
| 1618 |
adding manifests |
| 1619 |
adding file changes |
| 1620 |
added 1 changesets with 1 changes to 1 files |
| 1621 |
test-debug-phase: new rev 0: x -> 0 |
| 1622 |
test-debug-phase: move rev 0: 1 -> 0 |
| 1623 |
|
| 1624 |
warn behavior |
| 1625 |
|
| 1626 |
$ hg push --config experimental.auto-publish=warn |
| 1627 |
pushing to $TESTTMP/auto-publish-orig |
| 1628 |
1 changesets about to be published |
| 1629 |
searching for changes |
| 1630 |
adding changesets |
| 1631 |
adding manifests |
| 1632 |
adding file changes |
| 1633 |
added 1 changesets with 1 changes to 1 files |
| 1634 |
test-debug-phase: new rev 1: x -> 0 |
| 1635 |
test-debug-phase: move rev 1: 1 -> 0 |
| 1636 |
|
| 1637 |
confirm behavior |
| 1638 |
|
| 1639 |
$ mkcommit a-p-C |
| 1640 |
test-debug-phase: new rev 2: x -> 1 |
| 1641 |
$ hg push --config experimental.auto-publish=confirm |
| 1642 |
pushing to $TESTTMP/auto-publish-orig |
| 1643 |
push and publish 1 changesets (yn)? y |
| 1644 |
searching for changes |
| 1645 |
adding changesets |
| 1646 |
adding manifests |
| 1647 |
adding file changes |
| 1648 |
added 1 changesets with 1 changes to 1 files |
| 1649 |
test-debug-phase: new rev 2: x -> 0 |
| 1650 |
test-debug-phase: move rev 2: 1 -> 0 |
| 1651 |
|
| 1652 |
$ cd .. |
| 1653 |
|
| 1654 |
|
| 1655 |
--publish flag |
| 1656 |
-------------- |
| 1657 |
|
| 1658 |
$ hg init doesnt-publish |
| 1659 |
$ cd doesnt-publish |
| 1660 |
$ cat > .hg/hgrc << EOF |
| 1661 |
> [phases] |
| 1662 |
> publish=0 |
| 1663 |
> EOF |
| 1664 |
$ mkcommit orig-root |
| 1665 |
test-debug-phase: new rev 0: x -> 1 |
| 1666 |
$ hg phase --public -r 'all()' |
| 1667 |
test-debug-phase: move rev 0: 1 -> 0 |
| 1668 |
$ cd .. |
| 1669 |
|
| 1670 |
$ hg clone -q doesnt-publish client |
| 1671 |
$ cd client |
| 1672 |
|
| 1673 |
pushing nothing |
| 1674 |
|
| 1675 |
$ mkcommit new-A |
| 1676 |
test-debug-phase: new rev 1: x -> 1 |
| 1677 |
$ mkcommit new-B |
| 1678 |
test-debug-phase: new rev 2: x -> 1 |
| 1679 |
$ hg push --publish -r null |
| 1680 |
pushing to $TESTTMP/doesnt-publish |
| 1681 |
searching for changes |
| 1682 |
no changes found |
| 1683 |
[1] |
| 1684 |
$ hgph |
| 1685 |
@ 2 draft new-B - 89512e87d697 |
| 1686 |
| |
| 1687 |
o 1 draft new-A - 4826e44e690e |
| 1688 |
| |
| 1689 |
o 0 public orig-root - c48edaf99a10 |
| 1690 |
|
| 1691 |
|
| 1692 |
pushing a new changeset (selective) |
| 1693 |
|
| 1694 |
$ hg push --publish -r 'desc("new-A")' |
| 1695 |
pushing to $TESTTMP/doesnt-publish |
| 1696 |
searching for changes |
| 1697 |
adding changesets |
| 1698 |
adding manifests |
| 1699 |
adding file changes |
| 1700 |
added 1 changesets with 1 changes to 1 files |
| 1701 |
test-debug-phase: new rev 1: x -> 0 |
| 1702 |
test-debug-phase: move rev 1: 1 -> 0 |
| 1703 |
$ hgph |
| 1704 |
@ 2 draft new-B - 89512e87d697 |
| 1705 |
| |
| 1706 |
o 1 public new-A - 4826e44e690e |
| 1707 |
| |
| 1708 |
o 0 public orig-root - c48edaf99a10 |
| 1709 |
|
| 1710 |
|
| 1711 |
pushing a new changeset (linear) |
| 1712 |
|
| 1713 |
$ hg push --publish |
| 1714 |
pushing to $TESTTMP/doesnt-publish |
| 1715 |
searching for changes |
| 1716 |
adding changesets |
| 1717 |
adding manifests |
| 1718 |
adding file changes |
| 1719 |
added 1 changesets with 1 changes to 1 files |
| 1720 |
test-debug-phase: new rev 2: x -> 0 |
| 1721 |
test-debug-phase: move rev 2: 1 -> 0 |
| 1722 |
$ hgph |
| 1723 |
@ 2 public new-B - 89512e87d697 |
| 1724 |
| |
| 1725 |
o 1 public new-A - 4826e44e690e |
| 1726 |
| |
| 1727 |
o 0 public orig-root - c48edaf99a10 |
| 1728 |
|
| 1729 |
|
| 1730 |
pushing new changesets (different branches) |
| 1731 |
|
| 1732 |
$ mkcommit new-C |
| 1733 |
test-debug-phase: new rev 3: x -> 1 |
| 1734 |
$ hg update -q '.^' |
| 1735 |
$ hg branch -q another |
| 1736 |
$ mkcommit new-D |
| 1737 |
test-debug-phase: new rev 4: x -> 1 |
| 1738 |
$ hg push --new-branch --publish |
| 1739 |
pushing to $TESTTMP/doesnt-publish |
| 1740 |
searching for changes |
| 1741 |
adding changesets |
| 1742 |
adding manifests |
| 1743 |
adding file changes |
| 1744 |
added 2 changesets with 2 changes to 2 files (+1 heads) |
| 1745 |
test-debug-phase: new rev 3: x -> 0 |
| 1746 |
test-debug-phase: new rev 4: x -> 0 |
| 1747 |
test-debug-phase: move rev 3: 1 -> 0 |
| 1748 |
test-debug-phase: move rev 4: 1 -> 0 |
| 1749 |
$ hgph |
| 1750 |
@ 4 public new-D - 5e53dcafd13c |
| 1751 |
| |
| 1752 |
| o 3 public new-C - 1665482cc06d |
| 1753 |
|/ |
| 1754 |
o 2 public new-B - 89512e87d697 |
| 1755 |
| |
| 1756 |
o 1 public new-A - 4826e44e690e |
| 1757 |
| |
| 1758 |
o 0 public orig-root - c48edaf99a10 |
| 1759 |
|
| 1760 |
|
| 1761 |
pushing a shared changeset |
| 1762 |
|
| 1763 |
$ mkcommit new-E |
| 1764 |
test-debug-phase: new rev 5: x -> 1 |
| 1765 |
$ hg push |
| 1766 |
pushing to $TESTTMP/doesnt-publish |
| 1767 |
searching for changes |
| 1768 |
adding changesets |
| 1769 |
adding manifests |
| 1770 |
adding file changes |
| 1771 |
added 1 changesets with 1 changes to 1 files |
| 1772 |
test-debug-phase: new rev 5: x -> 1 |
| 1773 |
$ hg push --publish |
| 1774 |
pushing to $TESTTMP/doesnt-publish |
| 1775 |
searching for changes |
| 1776 |
no changes found |
| 1777 |
test-debug-phase: move rev 5: 1 -> 0 |
| 1778 |
test-debug-phase: move rev 5: 1 -> 0 |
| 1779 |
[1] |
| 1780 |
$ hgph |
| 1781 |
@ 5 public new-E - 48931ee3529c |
| 1782 |
| |
| 1783 |
o 4 public new-D - 5e53dcafd13c |
| 1784 |
| |
| 1785 |
| o 3 public new-C - 1665482cc06d |
| 1786 |
|/ |
| 1787 |
o 2 public new-B - 89512e87d697 |
| 1788 |
| |
| 1789 |
o 1 public new-A - 4826e44e690e |
| 1790 |
| |
| 1791 |
o 0 public orig-root - c48edaf99a10 |
| 1792 |
|
| 1793 |
$ cd .. |
| 1794 |
|
| 1795 |
--publish with subrepos (doesn't propagate to subrepos currently) |
| 1796 |
|
| 1797 |
$ hg init with-subrepo |
| 1798 |
$ cd with-subrepo |
| 1799 |
$ cat > .hg/hgrc << EOF |
| 1800 |
> [phases] |
| 1801 |
> publish=0 |
| 1802 |
> EOF |
| 1803 |
$ hg init subrepo |
| 1804 |
$ cd subrepo |
| 1805 |
$ cat > .hg/hgrc << EOF |
| 1806 |
> [phases] |
| 1807 |
> publish=0 |
| 1808 |
> EOF |
| 1809 |
$ echo foo > foo |
| 1810 |
$ hg ci -qAm0 |
| 1811 |
test-debug-phase: new rev 0: x -> 1 |
| 1812 |
$ cd .. |
| 1813 |
$ echo 'subrepo = subrepo' > .hgsub |
| 1814 |
$ hg add .hgsub |
| 1815 |
$ hg ci -m 'Adding subrepo' |
| 1816 |
test-debug-phase: new rev 0: x -> 1 |
| 1817 |
$ hgph |
| 1818 |
@ 0 draft Adding subrepo - 74d5b62379c0 |
| 1819 |
|
| 1820 |
$ hgph -R subrepo |
| 1821 |
@ 0 draft 0 - 4b3f578e3344 |
| 1822 |
|
| 1823 |
$ cd .. |
| 1824 |
$ hg clone with-subrepo client-with-subrepo |
| 1825 |
updating to branch default |
| 1826 |
cloning subrepo subrepo from $TESTTMP/with-subrepo/subrepo |
| 1827 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 1828 |
$ cd client-with-subrepo |
| 1829 |
$ hg push --publish |
| 1830 |
pushing to $TESTTMP/with-subrepo |
| 1831 |
no changes made to subrepo subrepo since last push to $TESTTMP/with-subrepo/subrepo |
| 1832 |
searching for changes |
| 1833 |
no changes found |
| 1834 |
test-debug-phase: move rev 0: 1 -> 0 |
| 1835 |
test-debug-phase: move rev 0: 1 -> 0 |
| 1836 |
[1] |
| 1837 |
$ hgph |
| 1838 |
@ 0 public Adding subrepo - 74d5b62379c0 |
| 1839 |
|
| 1840 |
$ hgph -R subrepo |
| 1841 |
@ 0 draft 0 - 4b3f578e3344 |
| 1842 |
|