##// END OF EJS Templates
debugcommands: allow sending of simple commands with debugwireproto...
Gregory Szorc -
r36547:bde0bd50 default
parent child Browse files
Show More
@@ -2614,6 +2614,21 b' def debugwireproto(ui, repo, **opts):'
2614
2614
2615 Behaves like ``raw`` except flushes output afterwards.
2615 Behaves like ``raw`` except flushes output afterwards.
2616
2616
2617 command <X>
2618 -----------
2619
2620 Send a request to run a named command, whose name follows the ``command``
2621 string.
2622
2623 Arguments to the command are defined as lines in this block. The format of
2624 each line is ``<key> <value>``. e.g.::
2625
2626 command listkeys
2627 namespace bookmarks
2628
2629 Values are interpreted as Python b'' literals. This allows encoding
2630 special byte sequences via backslash escaping.
2631
2617 close
2632 close
2618 -----
2633 -----
2619
2634
@@ -2713,6 +2728,29 b' def debugwireproto(ui, repo, **opts):'
2713 stdin.flush()
2728 stdin.flush()
2714 elif action == 'flush':
2729 elif action == 'flush':
2715 stdin.flush()
2730 stdin.flush()
2731 elif action.startswith('command'):
2732 if not peer:
2733 raise error.Abort(_('cannot send commands unless peer instance '
2734 'is available'))
2735
2736 command = action.split(' ', 1)[1]
2737
2738 args = {}
2739 for line in lines:
2740 # We need to allow empty values.
2741 fields = line.lstrip().split(' ', 1)
2742 if len(fields) == 1:
2743 key = fields[0]
2744 value = ''
2745 else:
2746 key, value = fields
2747
2748 args[key] = util.unescapestr(value)
2749
2750 ui.status(_('sending %s command\n') % command)
2751 res = peer._call(command, **args)
2752 ui.status(_('response: %s\n') % util.escapedata(res))
2753
2716 elif action == 'close':
2754 elif action == 'close':
2717 peer.close()
2755 peer.close()
2718 elif action == 'readavailable':
2756 elif action == 'readavailable':
This diff has been collapsed as it changes many lines, (578 lines changed) Show them Hide them
@@ -1,3 +1,23 b''
1 $ cat > hgrc-sshv2 << EOF
2 > %include $HGRCPATH
3 > [experimental]
4 > sshpeer.advertise-v2 = true
5 > sshserver.support-v2 = true
6 > EOF
7
8 Helper function to run protocol tests against multiple protocol versions.
9 This is easier than using #testcases because managing differences between
10 protocols with inline conditional output is hard to read.
11
12 $ debugwireproto() {
13 > commands=`cat -`
14 > echo 'testing ssh1'
15 > echo "${commands}" | hg --verbose debugwireproto --localssh
16 > echo ""
17 > echo 'testing ssh2'
18 > echo "${commands}" | HGRCPATH=$TESTTMP/hgrc-sshv2 hg --verbose debugwireproto --localssh
19 > }
20
1 $ cat >> $HGRCPATH << EOF
21 $ cat >> $HGRCPATH << EOF
2 > [ui]
22 > [ui]
3 > ssh = $PYTHON "$TESTDIR/dummyssh"
23 > ssh = $PYTHON "$TESTDIR/dummyssh"
@@ -1252,3 +1272,561 b' Upgrade request must be followed by hell'
1252 e> read(-1) -> 49:
1272 e> read(-1) -> 49:
1253 e> malformed handshake protocol: missing pairs 81\n
1273 e> malformed handshake protocol: missing pairs 81\n
1254 e> -\n
1274 e> -\n
1275
1276 $ cd ..
1277
1278 Test listkeys for listing namespaces
1279
1280 $ hg init empty
1281 $ cd empty
1282 $ debugwireproto << EOF
1283 > command listkeys
1284 > namespace namespaces
1285 > EOF
1286 testing ssh1
1287 creating ssh peer from handshake results
1288 i> write(104) -> None:
1289 i> hello\n
1290 i> between\n
1291 i> pairs 81\n
1292 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1293 i> flush() -> None
1294 o> readline() -> 4:
1295 o> 384\n
1296 o> readline() -> 384:
1297 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1298 o> readline() -> 2:
1299 o> 1\n
1300 o> readline() -> 1:
1301 o> \n
1302 sending listkeys command
1303 i> write(9) -> None:
1304 i> listkeys\n
1305 i> write(13) -> None:
1306 i> namespace 10\n
1307 i> write(10) -> None: namespaces
1308 i> flush() -> None
1309 o> bufferedreadline() -> 3:
1310 o> 30\n
1311 o> bufferedread(30) -> 30:
1312 o> bookmarks \n
1313 o> namespaces \n
1314 o> phases
1315 response: bookmarks \nnamespaces \nphases
1316
1317 testing ssh2
1318 creating ssh peer from handshake results
1319 i> write(171) -> None:
1320 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1321 i> hello\n
1322 i> between\n
1323 i> pairs 81\n
1324 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1325 i> flush() -> None
1326 o> readline() -> 62:
1327 o> upgraded * exp-ssh-v2-0001\n (glob)
1328 o> readline() -> 4:
1329 o> 383\n
1330 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1331 o> read(1) -> 1:
1332 o> \n
1333 sending listkeys command
1334 i> write(9) -> None:
1335 i> listkeys\n
1336 i> write(13) -> None:
1337 i> namespace 10\n
1338 i> write(10) -> None: namespaces
1339 i> flush() -> None
1340 o> bufferedreadline() -> 3:
1341 o> 30\n
1342 o> bufferedread(30) -> 30:
1343 o> bookmarks \n
1344 o> namespaces \n
1345 o> phases
1346 response: bookmarks \nnamespaces \nphases
1347
1348 $ cd ..
1349
1350 Test listkeys for bookmarks
1351
1352 $ hg init bookmarkrepo
1353 $ cd bookmarkrepo
1354 $ echo 0 > foo
1355 $ hg add foo
1356 $ hg -q commit -m initial
1357 $ echo 1 > foo
1358 $ hg commit -m second
1359
1360 With no bookmarks set
1361
1362 $ debugwireproto << EOF
1363 > command listkeys
1364 > namespace bookmarks
1365 > EOF
1366 testing ssh1
1367 creating ssh peer from handshake results
1368 i> write(104) -> None:
1369 i> hello\n
1370 i> between\n
1371 i> pairs 81\n
1372 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1373 i> flush() -> None
1374 o> readline() -> 4:
1375 o> 384\n
1376 o> readline() -> 384:
1377 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1378 o> readline() -> 2:
1379 o> 1\n
1380 o> readline() -> 1:
1381 o> \n
1382 sending listkeys command
1383 i> write(9) -> None:
1384 i> listkeys\n
1385 i> write(12) -> None:
1386 i> namespace 9\n
1387 i> write(9) -> None: bookmarks
1388 i> flush() -> None
1389 o> bufferedreadline() -> 2:
1390 o> 0\n
1391 response:
1392
1393 testing ssh2
1394 creating ssh peer from handshake results
1395 i> write(171) -> None:
1396 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1397 i> hello\n
1398 i> between\n
1399 i> pairs 81\n
1400 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1401 i> flush() -> None
1402 o> readline() -> 62:
1403 o> upgraded * exp-ssh-v2-0001\n (glob)
1404 o> readline() -> 4:
1405 o> 383\n
1406 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1407 o> read(1) -> 1:
1408 o> \n
1409 sending listkeys command
1410 i> write(9) -> None:
1411 i> listkeys\n
1412 i> write(12) -> None:
1413 i> namespace 9\n
1414 i> write(9) -> None: bookmarks
1415 i> flush() -> None
1416 o> bufferedreadline() -> 2:
1417 o> 0\n
1418 response:
1419
1420 With a single bookmark set
1421
1422 $ hg book -r 0 bookA
1423 $ debugwireproto << EOF
1424 > command listkeys
1425 > namespace bookmarks
1426 > EOF
1427 testing ssh1
1428 creating ssh peer from handshake results
1429 i> write(104) -> None:
1430 i> hello\n
1431 i> between\n
1432 i> pairs 81\n
1433 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1434 i> flush() -> None
1435 o> readline() -> 4:
1436 o> 384\n
1437 o> readline() -> 384:
1438 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1439 o> readline() -> 2:
1440 o> 1\n
1441 o> readline() -> 1:
1442 o> \n
1443 sending listkeys command
1444 i> write(9) -> None:
1445 i> listkeys\n
1446 i> write(12) -> None:
1447 i> namespace 9\n
1448 i> write(9) -> None: bookmarks
1449 i> flush() -> None
1450 o> bufferedreadline() -> 3:
1451 o> 46\n
1452 o> bufferedread(46) -> 46: bookA 68986213bd4485ea51533535e3fc9e78007a711f
1453 response: bookA 68986213bd4485ea51533535e3fc9e78007a711f
1454
1455 testing ssh2
1456 creating ssh peer from handshake results
1457 i> write(171) -> None:
1458 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1459 i> hello\n
1460 i> between\n
1461 i> pairs 81\n
1462 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1463 i> flush() -> None
1464 o> readline() -> 62:
1465 o> upgraded * exp-ssh-v2-0001\n (glob)
1466 o> readline() -> 4:
1467 o> 383\n
1468 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1469 o> read(1) -> 1:
1470 o> \n
1471 sending listkeys command
1472 i> write(9) -> None:
1473 i> listkeys\n
1474 i> write(12) -> None:
1475 i> namespace 9\n
1476 i> write(9) -> None: bookmarks
1477 i> flush() -> None
1478 o> bufferedreadline() -> 3:
1479 o> 46\n
1480 o> bufferedread(46) -> 46: bookA 68986213bd4485ea51533535e3fc9e78007a711f
1481 response: bookA 68986213bd4485ea51533535e3fc9e78007a711f
1482
1483 With multiple bookmarks set
1484
1485 $ hg book -r 1 bookB
1486 $ debugwireproto << EOF
1487 > command listkeys
1488 > namespace bookmarks
1489 > EOF
1490 testing ssh1
1491 creating ssh peer from handshake results
1492 i> write(104) -> None:
1493 i> hello\n
1494 i> between\n
1495 i> pairs 81\n
1496 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1497 i> flush() -> None
1498 o> readline() -> 4:
1499 o> 384\n
1500 o> readline() -> 384:
1501 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1502 o> readline() -> 2:
1503 o> 1\n
1504 o> readline() -> 1:
1505 o> \n
1506 sending listkeys command
1507 i> write(9) -> None:
1508 i> listkeys\n
1509 i> write(12) -> None:
1510 i> namespace 9\n
1511 i> write(9) -> None: bookmarks
1512 i> flush() -> None
1513 o> bufferedreadline() -> 3:
1514 o> 93\n
1515 o> bufferedread(93) -> 93:
1516 o> bookA 68986213bd4485ea51533535e3fc9e78007a711f\n
1517 o> bookB 1880f3755e2e52e3199e0ee5638128b08642f34d
1518 response: bookA 68986213bd4485ea51533535e3fc9e78007a711f\nbookB 1880f3755e2e52e3199e0ee5638128b08642f34d
1519
1520 testing ssh2
1521 creating ssh peer from handshake results
1522 i> write(171) -> None:
1523 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1524 i> hello\n
1525 i> between\n
1526 i> pairs 81\n
1527 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1528 i> flush() -> None
1529 o> readline() -> 62:
1530 o> upgraded * exp-ssh-v2-0001\n (glob)
1531 o> readline() -> 4:
1532 o> 383\n
1533 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1534 o> read(1) -> 1:
1535 o> \n
1536 sending listkeys command
1537 i> write(9) -> None:
1538 i> listkeys\n
1539 i> write(12) -> None:
1540 i> namespace 9\n
1541 i> write(9) -> None: bookmarks
1542 i> flush() -> None
1543 o> bufferedreadline() -> 3:
1544 o> 93\n
1545 o> bufferedread(93) -> 93:
1546 o> bookA 68986213bd4485ea51533535e3fc9e78007a711f\n
1547 o> bookB 1880f3755e2e52e3199e0ee5638128b08642f34d
1548 response: bookA 68986213bd4485ea51533535e3fc9e78007a711f\nbookB 1880f3755e2e52e3199e0ee5638128b08642f34d
1549
1550 $ cd ..
1551
1552 Test listkeys for phases
1553
1554 $ hg init phasesrepo
1555 $ cd phasesrepo
1556
1557 Phases on empty repo
1558
1559 $ debugwireproto << EOF
1560 > command listkeys
1561 > namespace phases
1562 > EOF
1563 testing ssh1
1564 creating ssh peer from handshake results
1565 i> write(104) -> None:
1566 i> hello\n
1567 i> between\n
1568 i> pairs 81\n
1569 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1570 i> flush() -> None
1571 o> readline() -> 4:
1572 o> 384\n
1573 o> readline() -> 384:
1574 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1575 o> readline() -> 2:
1576 o> 1\n
1577 o> readline() -> 1:
1578 o> \n
1579 sending listkeys command
1580 i> write(9) -> None:
1581 i> listkeys\n
1582 i> write(12) -> None:
1583 i> namespace 6\n
1584 i> write(6) -> None: phases
1585 i> flush() -> None
1586 o> bufferedreadline() -> 3:
1587 o> 15\n
1588 o> bufferedread(15) -> 15: publishing True
1589 response: publishing True
1590
1591 testing ssh2
1592 creating ssh peer from handshake results
1593 i> write(171) -> None:
1594 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1595 i> hello\n
1596 i> between\n
1597 i> pairs 81\n
1598 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1599 i> flush() -> None
1600 o> readline() -> 62:
1601 o> upgraded * exp-ssh-v2-0001\n (glob)
1602 o> readline() -> 4:
1603 o> 383\n
1604 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1605 o> read(1) -> 1:
1606 o> \n
1607 sending listkeys command
1608 i> write(9) -> None:
1609 i> listkeys\n
1610 i> write(12) -> None:
1611 i> namespace 6\n
1612 i> write(6) -> None: phases
1613 i> flush() -> None
1614 o> bufferedreadline() -> 3:
1615 o> 15\n
1616 o> bufferedread(15) -> 15: publishing True
1617 response: publishing True
1618
1619 Create some commits
1620
1621 $ echo 0 > foo
1622 $ hg add foo
1623 $ hg -q commit -m initial
1624 $ hg phase --public
1625 $ echo 1 > foo
1626 $ hg commit -m 'head 1 commit 1'
1627 $ echo 2 > foo
1628 $ hg commit -m 'head 1 commit 2'
1629 $ hg -q up 0
1630 $ echo 1a > foo
1631 $ hg commit -m 'head 2 commit 1'
1632 created new head
1633 $ echo 2a > foo
1634 $ hg commit -m 'head 2 commit 2'
1635
1636 Two draft heads
1637
1638 $ debugwireproto << EOF
1639 > command listkeys
1640 > namespace phases
1641 > EOF
1642 testing ssh1
1643 creating ssh peer from handshake results
1644 i> write(104) -> None:
1645 i> hello\n
1646 i> between\n
1647 i> pairs 81\n
1648 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1649 i> flush() -> None
1650 o> readline() -> 4:
1651 o> 384\n
1652 o> readline() -> 384:
1653 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1654 o> readline() -> 2:
1655 o> 1\n
1656 o> readline() -> 1:
1657 o> \n
1658 sending listkeys command
1659 i> write(9) -> None:
1660 i> listkeys\n
1661 i> write(12) -> None:
1662 i> namespace 6\n
1663 i> write(6) -> None: phases
1664 i> flush() -> None
1665 o> bufferedreadline() -> 4:
1666 o> 101\n
1667 o> bufferedread(101) -> 101:
1668 o> 20b8a89289d80036e6c4e87c2083e3bea1586637 1\n
1669 o> c4750011d906c18ea2f0527419cbc1a544435150 1\n
1670 o> publishing True
1671 response: 20b8a89289d80036e6c4e87c2083e3bea1586637 1\nc4750011d906c18ea2f0527419cbc1a544435150 1\npublishing True
1672
1673 testing ssh2
1674 creating ssh peer from handshake results
1675 i> write(171) -> None:
1676 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1677 i> hello\n
1678 i> between\n
1679 i> pairs 81\n
1680 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1681 i> flush() -> None
1682 o> readline() -> 62:
1683 o> upgraded * exp-ssh-v2-0001\n (glob)
1684 o> readline() -> 4:
1685 o> 383\n
1686 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1687 o> read(1) -> 1:
1688 o> \n
1689 sending listkeys command
1690 i> write(9) -> None:
1691 i> listkeys\n
1692 i> write(12) -> None:
1693 i> namespace 6\n
1694 i> write(6) -> None: phases
1695 i> flush() -> None
1696 o> bufferedreadline() -> 4:
1697 o> 101\n
1698 o> bufferedread(101) -> 101:
1699 o> 20b8a89289d80036e6c4e87c2083e3bea1586637 1\n
1700 o> c4750011d906c18ea2f0527419cbc1a544435150 1\n
1701 o> publishing True
1702 response: 20b8a89289d80036e6c4e87c2083e3bea1586637 1\nc4750011d906c18ea2f0527419cbc1a544435150 1\npublishing True
1703
1704 Single draft head
1705
1706 $ hg phase --public -r 2
1707 $ debugwireproto << EOF
1708 > command listkeys
1709 > namespace phases
1710 > EOF
1711 testing ssh1
1712 creating ssh peer from handshake results
1713 i> write(104) -> None:
1714 i> hello\n
1715 i> between\n
1716 i> pairs 81\n
1717 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1718 i> flush() -> None
1719 o> readline() -> 4:
1720 o> 384\n
1721 o> readline() -> 384:
1722 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1723 o> readline() -> 2:
1724 o> 1\n
1725 o> readline() -> 1:
1726 o> \n
1727 sending listkeys command
1728 i> write(9) -> None:
1729 i> listkeys\n
1730 i> write(12) -> None:
1731 i> namespace 6\n
1732 i> write(6) -> None: phases
1733 i> flush() -> None
1734 o> bufferedreadline() -> 3:
1735 o> 58\n
1736 o> bufferedread(58) -> 58:
1737 o> c4750011d906c18ea2f0527419cbc1a544435150 1\n
1738 o> publishing True
1739 response: c4750011d906c18ea2f0527419cbc1a544435150 1\npublishing True
1740
1741 testing ssh2
1742 creating ssh peer from handshake results
1743 i> write(171) -> None:
1744 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1745 i> hello\n
1746 i> between\n
1747 i> pairs 81\n
1748 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1749 i> flush() -> None
1750 o> readline() -> 62:
1751 o> upgraded * exp-ssh-v2-0001\n (glob)
1752 o> readline() -> 4:
1753 o> 383\n
1754 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1755 o> read(1) -> 1:
1756 o> \n
1757 sending listkeys command
1758 i> write(9) -> None:
1759 i> listkeys\n
1760 i> write(12) -> None:
1761 i> namespace 6\n
1762 i> write(6) -> None: phases
1763 i> flush() -> None
1764 o> bufferedreadline() -> 3:
1765 o> 58\n
1766 o> bufferedread(58) -> 58:
1767 o> c4750011d906c18ea2f0527419cbc1a544435150 1\n
1768 o> publishing True
1769 response: c4750011d906c18ea2f0527419cbc1a544435150 1\npublishing True
1770
1771 All public heads
1772
1773 $ hg phase --public -r 4
1774 $ debugwireproto << EOF
1775 > command listkeys
1776 > namespace phases
1777 > EOF
1778 testing ssh1
1779 creating ssh peer from handshake results
1780 i> write(104) -> None:
1781 i> hello\n
1782 i> between\n
1783 i> pairs 81\n
1784 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1785 i> flush() -> None
1786 o> readline() -> 4:
1787 o> 384\n
1788 o> readline() -> 384:
1789 o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n
1790 o> readline() -> 2:
1791 o> 1\n
1792 o> readline() -> 1:
1793 o> \n
1794 sending listkeys command
1795 i> write(9) -> None:
1796 i> listkeys\n
1797 i> write(12) -> None:
1798 i> namespace 6\n
1799 i> write(6) -> None: phases
1800 i> flush() -> None
1801 o> bufferedreadline() -> 3:
1802 o> 15\n
1803 o> bufferedread(15) -> 15: publishing True
1804 response: publishing True
1805
1806 testing ssh2
1807 creating ssh peer from handshake results
1808 i> write(171) -> None:
1809 i> upgrade * proto=exp-ssh-v2-0001\n (glob)
1810 i> hello\n
1811 i> between\n
1812 i> pairs 81\n
1813 i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000
1814 i> flush() -> None
1815 o> readline() -> 62:
1816 o> upgraded * exp-ssh-v2-0001\n (glob)
1817 o> readline() -> 4:
1818 o> 383\n
1819 o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN
1820 o> read(1) -> 1:
1821 o> \n
1822 sending listkeys command
1823 i> write(9) -> None:
1824 i> listkeys\n
1825 i> write(12) -> None:
1826 i> namespace 6\n
1827 i> write(6) -> None: phases
1828 i> flush() -> None
1829 o> bufferedreadline() -> 3:
1830 o> 15\n
1831 o> bufferedread(15) -> 15: publishing True
1832 response: publishing True
General Comments 0
You need to be logged in to leave comments. Login now