Show More
@@ -1,5 +1,6 b'' | |||||
1 | $ cat >> $HGRCPATH << EOF |
|
1 | $ cat >> $HGRCPATH << EOF | |
2 | > [extensions] |
|
2 | > [extensions] | |
|
3 | > drawdag=$TESTDIR/drawdag.py | |||
3 | > phasereport=$TESTDIR/testlib/ext-phase-report.py |
|
4 | > phasereport=$TESTDIR/testlib/ext-phase-report.py | |
4 | > EOF |
|
5 | > EOF | |
5 |
|
6 | |||
@@ -1174,6 +1175,8 b' check that secret local on both side are' | |||||
1174 | $ hg phase f54f1bb90ff3 |
|
1175 | $ hg phase f54f1bb90ff3 | |
1175 | 2: draft |
|
1176 | 2: draft | |
1176 |
|
1177 | |||
|
1178 | $ killdaemons.py | |||
|
1179 | ||||
1177 | put the changeset in the draft state again |
|
1180 | put the changeset in the draft state again | |
1178 | (first test after this one expect to be able to copy) |
|
1181 | (first test after this one expect to be able to copy) | |
1179 |
|
1182 | |||
@@ -1379,3 +1382,178 b' above.' | |||||
1379 | o 9 draft a-G - 3e27b6f1eee1 |
|
1382 | o 9 draft a-G - 3e27b6f1eee1 | |
1380 | | |
|
1383 | | | |
1381 | ~ |
|
1384 | ~ | |
|
1385 | ||||
|
1386 | Test phases exchange when a phaseroot is on a merge | |||
|
1387 | ||||
|
1388 | $ hg init mergetest | |||
|
1389 | $ cd mergetest | |||
|
1390 | > cat > .hg/hgrc << EOF | |||
|
1391 | > [phases] | |||
|
1392 | > publish = false | |||
|
1393 | > EOF | |||
|
1394 | ||||
|
1395 | $ hg debugdrawdag << EOF | |||
|
1396 | > E Z | |||
|
1397 | > |\| | |||
|
1398 | > D Y | |||
|
1399 | > | | | |||
|
1400 | > C X | |||
|
1401 | > |/ | |||
|
1402 | > B | |||
|
1403 | > | | |||
|
1404 | > A | |||
|
1405 | > EOF | |||
|
1406 | test-debug-phase: new rev 0: x -> 1 | |||
|
1407 | test-debug-phase: new rev 1: x -> 1 | |||
|
1408 | test-debug-phase: new rev 2: x -> 1 | |||
|
1409 | test-debug-phase: new rev 3: x -> 1 | |||
|
1410 | test-debug-phase: new rev 4: x -> 1 | |||
|
1411 | test-debug-phase: new rev 5: x -> 1 | |||
|
1412 | test-debug-phase: new rev 6: x -> 1 | |||
|
1413 | test-debug-phase: new rev 7: x -> 1 | |||
|
1414 | ||||
|
1415 | $ hg phase --public -r D | |||
|
1416 | test-debug-phase: move rev 0: 1 -> 0 | |||
|
1417 | test-debug-phase: move rev 1: 1 -> 0 | |||
|
1418 | test-debug-phase: move rev 2: 1 -> 0 | |||
|
1419 | test-debug-phase: move rev 4: 1 -> 0 | |||
|
1420 | ||||
|
1421 | $ hg log -G -T '{shortest(node, 5)} {phase}' | |||
|
1422 | o bb947 draft | |||
|
1423 | | | |||
|
1424 | | o 5ac28 draft | |||
|
1425 | |/| | |||
|
1426 | o | 13b7b draft | |||
|
1427 | | | | |||
|
1428 | | o f5853 public | |||
|
1429 | | | | |||
|
1430 | o | c67c4 draft | |||
|
1431 | | | | |||
|
1432 | | o 26805 public | |||
|
1433 | |/ | |||
|
1434 | o 11247 public | |||
|
1435 | | | |||
|
1436 | o 426ba public | |||
|
1437 | ||||
|
1438 | $ cd .. | |||
|
1439 | ||||
|
1440 | Works with default settings | |||
|
1441 | ||||
|
1442 | $ hg -R mergetest serve -p $HGPORT -d --pid-file=hg.pid | |||
|
1443 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
1444 | ||||
|
1445 | $ hg clone -U http://localhost:$HGPORT mergetest-normal | |||
|
1446 | requesting all changes | |||
|
1447 | adding changesets | |||
|
1448 | adding manifests | |||
|
1449 | adding file changes | |||
|
1450 | added 8 changesets with 7 changes to 7 files (+1 heads) | |||
|
1451 | new changesets 426bada5c675:bb94757e651a | |||
|
1452 | test-debug-phase: new rev 0: x -> 0 | |||
|
1453 | test-debug-phase: new rev 1: x -> 0 | |||
|
1454 | test-debug-phase: new rev 2: x -> 0 | |||
|
1455 | test-debug-phase: new rev 3: x -> 1 | |||
|
1456 | test-debug-phase: new rev 4: x -> 0 | |||
|
1457 | test-debug-phase: new rev 5: x -> 1 | |||
|
1458 | test-debug-phase: new rev 6: x -> 1 | |||
|
1459 | test-debug-phase: new rev 7: x -> 1 | |||
|
1460 | ||||
|
1461 | $ hg -R mergetest-normal log -G -T '{shortest(node, 5)} {phase}' | |||
|
1462 | o bb947 draft | |||
|
1463 | | | |||
|
1464 | | o 5ac28 draft | |||
|
1465 | |/| | |||
|
1466 | o | 13b7b draft | |||
|
1467 | | | | |||
|
1468 | | o f5853 public | |||
|
1469 | | | | |||
|
1470 | o | c67c4 draft | |||
|
1471 | | | | |||
|
1472 | | o 26805 public | |||
|
1473 | |/ | |||
|
1474 | o 11247 public | |||
|
1475 | | | |||
|
1476 | o 426ba public | |||
|
1477 | ||||
|
1478 | $ killdaemons.py | |||
|
1479 | ||||
|
1480 | With legacy listkeys over bundle2 | |||
|
1481 | TODO issue 5939: public phase lost on 26805 and f5853 | |||
|
1482 | ||||
|
1483 | $ hg -R mergetest --config devel.legacy.exchange=phases serve -p $HGPORT -d --pid-file=hg.pid | |||
|
1484 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
1485 | ||||
|
1486 | $ hg clone -U http://localhost:$HGPORT mergetest-nobinarypart | |||
|
1487 | requesting all changes | |||
|
1488 | adding changesets | |||
|
1489 | adding manifests | |||
|
1490 | adding file changes | |||
|
1491 | added 8 changesets with 7 changes to 7 files (+1 heads) | |||
|
1492 | new changesets 426bada5c675:bb94757e651a | |||
|
1493 | test-debug-phase: new rev 0: x -> 0 | |||
|
1494 | test-debug-phase: new rev 1: x -> 0 | |||
|
1495 | test-debug-phase: new rev 2: x -> 1 | |||
|
1496 | test-debug-phase: new rev 3: x -> 1 | |||
|
1497 | test-debug-phase: new rev 4: x -> 1 | |||
|
1498 | test-debug-phase: new rev 5: x -> 1 | |||
|
1499 | test-debug-phase: new rev 6: x -> 1 | |||
|
1500 | test-debug-phase: new rev 7: x -> 1 | |||
|
1501 | ||||
|
1502 | $ hg -R mergetest-nobinarypart log -G -T '{shortest(node, 5)} {phase}' | |||
|
1503 | o bb947 draft | |||
|
1504 | | | |||
|
1505 | | o 5ac28 draft | |||
|
1506 | |/| | |||
|
1507 | o | 13b7b draft | |||
|
1508 | | | | |||
|
1509 | | o f5853 draft | |||
|
1510 | | | | |||
|
1511 | o | c67c4 draft | |||
|
1512 | | | | |||
|
1513 | | o 26805 draft | |||
|
1514 | |/ | |||
|
1515 | o 11247 public | |||
|
1516 | | | |||
|
1517 | o 426ba public | |||
|
1518 | ||||
|
1519 | $ killdaemons.py | |||
|
1520 | ||||
|
1521 | Without bundle2 | |||
|
1522 | TODO issue 5939: public phase lost on 26805 and f5853 | |||
|
1523 | ||||
|
1524 | $ hg -R mergetest serve -p $HGPORT -d --pid-file=hg.pid | |||
|
1525 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
1526 | ||||
|
1527 | $ hg --config devel.legacy.exchange=bundle1 clone -U http://localhost:$HGPORT mergetest-bundle1 | |||
|
1528 | requesting all changes | |||
|
1529 | adding changesets | |||
|
1530 | adding manifests | |||
|
1531 | adding file changes | |||
|
1532 | added 8 changesets with 7 changes to 7 files (+1 heads) | |||
|
1533 | new changesets 426bada5c675:bb94757e651a | |||
|
1534 | test-debug-phase: new rev 0: x -> 0 | |||
|
1535 | test-debug-phase: new rev 1: x -> 0 | |||
|
1536 | test-debug-phase: new rev 2: x -> 1 | |||
|
1537 | test-debug-phase: new rev 3: x -> 1 | |||
|
1538 | test-debug-phase: new rev 4: x -> 1 | |||
|
1539 | test-debug-phase: new rev 5: x -> 1 | |||
|
1540 | test-debug-phase: new rev 6: x -> 1 | |||
|
1541 | test-debug-phase: new rev 7: x -> 1 | |||
|
1542 | ||||
|
1543 | $ hg -R mergetest-bundle1 log -G -T '{shortest(node, 5)} {phase}' | |||
|
1544 | o bb947 draft | |||
|
1545 | | | |||
|
1546 | | o 5ac28 draft | |||
|
1547 | |/| | |||
|
1548 | o | 13b7b draft | |||
|
1549 | | | | |||
|
1550 | | o f5853 draft | |||
|
1551 | | | | |||
|
1552 | o | c67c4 draft | |||
|
1553 | | | | |||
|
1554 | | o 26805 draft | |||
|
1555 | |/ | |||
|
1556 | o 11247 public | |||
|
1557 | | | |||
|
1558 | o 426ba public | |||
|
1559 |
General Comments 0
You need to be logged in to leave comments.
Login now