Show More
@@ -1547,6 +1547,94 b' With multiple bookmarks set' | |||||
1547 | o> bookB 1880f3755e2e52e3199e0ee5638128b08642f34d |
|
1547 | o> bookB 1880f3755e2e52e3199e0ee5638128b08642f34d | |
1548 | response: bookA 68986213bd4485ea51533535e3fc9e78007a711f\nbookB 1880f3755e2e52e3199e0ee5638128b08642f34d |
|
1548 | response: bookA 68986213bd4485ea51533535e3fc9e78007a711f\nbookB 1880f3755e2e52e3199e0ee5638128b08642f34d | |
1549 |
|
1549 | |||
|
1550 | Test pushkey for bookmarks | |||
|
1551 | ||||
|
1552 | $ debugwireproto << EOF | |||
|
1553 | > command pushkey | |||
|
1554 | > namespace bookmarks | |||
|
1555 | > key remote | |||
|
1556 | > old | |||
|
1557 | > new 68986213bd4485ea51533535e3fc9e78007a711f | |||
|
1558 | > EOF | |||
|
1559 | testing ssh1 | |||
|
1560 | creating ssh peer from handshake results | |||
|
1561 | i> write(104) -> None: | |||
|
1562 | i> hello\n | |||
|
1563 | i> between\n | |||
|
1564 | i> pairs 81\n | |||
|
1565 | i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 | |||
|
1566 | i> flush() -> None | |||
|
1567 | o> readline() -> 4: | |||
|
1568 | o> 384\n | |||
|
1569 | o> readline() -> 384: | |||
|
1570 | o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n | |||
|
1571 | o> readline() -> 2: | |||
|
1572 | o> 1\n | |||
|
1573 | o> readline() -> 1: | |||
|
1574 | o> \n | |||
|
1575 | sending pushkey command | |||
|
1576 | i> write(8) -> None: | |||
|
1577 | i> pushkey\n | |||
|
1578 | i> write(6) -> None: | |||
|
1579 | i> key 6\n | |||
|
1580 | i> write(6) -> None: remote | |||
|
1581 | i> write(12) -> None: | |||
|
1582 | i> namespace 9\n | |||
|
1583 | i> write(9) -> None: bookmarks | |||
|
1584 | i> write(7) -> None: | |||
|
1585 | i> new 40\n | |||
|
1586 | i> write(40) -> None: 68986213bd4485ea51533535e3fc9e78007a711f | |||
|
1587 | i> write(6) -> None: | |||
|
1588 | i> old 0\n | |||
|
1589 | i> flush() -> None | |||
|
1590 | o> bufferedreadline() -> 2: | |||
|
1591 | o> 2\n | |||
|
1592 | o> bufferedread(2) -> 2: | |||
|
1593 | o> 1\n | |||
|
1594 | response: 1\n | |||
|
1595 | ||||
|
1596 | testing ssh2 | |||
|
1597 | creating ssh peer from handshake results | |||
|
1598 | i> write(171) -> None: | |||
|
1599 | i> upgrade * proto=exp-ssh-v2-0001\n (glob) | |||
|
1600 | i> hello\n | |||
|
1601 | i> between\n | |||
|
1602 | i> pairs 81\n | |||
|
1603 | i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 | |||
|
1604 | i> flush() -> None | |||
|
1605 | o> readline() -> 62: | |||
|
1606 | o> upgraded * exp-ssh-v2-0001\n (glob) | |||
|
1607 | o> readline() -> 4: | |||
|
1608 | o> 383\n | |||
|
1609 | o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN | |||
|
1610 | o> read(1) -> 1: | |||
|
1611 | o> \n | |||
|
1612 | sending pushkey command | |||
|
1613 | i> write(8) -> None: | |||
|
1614 | i> pushkey\n | |||
|
1615 | i> write(6) -> None: | |||
|
1616 | i> key 6\n | |||
|
1617 | i> write(6) -> None: remote | |||
|
1618 | i> write(12) -> None: | |||
|
1619 | i> namespace 9\n | |||
|
1620 | i> write(9) -> None: bookmarks | |||
|
1621 | i> write(7) -> None: | |||
|
1622 | i> new 40\n | |||
|
1623 | i> write(40) -> None: 68986213bd4485ea51533535e3fc9e78007a711f | |||
|
1624 | i> write(6) -> None: | |||
|
1625 | i> old 0\n | |||
|
1626 | i> flush() -> None | |||
|
1627 | o> bufferedreadline() -> 2: | |||
|
1628 | o> 2\n | |||
|
1629 | o> bufferedread(2) -> 2: | |||
|
1630 | o> 1\n | |||
|
1631 | response: 1\n | |||
|
1632 | ||||
|
1633 | $ hg bookmarks | |||
|
1634 | bookA 0:68986213bd44 | |||
|
1635 | bookB 1:1880f3755e2e | |||
|
1636 | remote 0:68986213bd44 | |||
|
1637 | ||||
1550 | $ cd .. |
|
1638 | $ cd .. | |
1551 |
|
1639 | |||
1552 | Test listkeys for phases |
|
1640 | Test listkeys for phases | |
@@ -1831,6 +1919,96 b' All public heads' | |||||
1831 | o> bufferedread(15) -> 15: publishing True |
|
1919 | o> bufferedread(15) -> 15: publishing True | |
1832 | response: publishing True |
|
1920 | response: publishing True | |
1833 |
|
1921 | |||
|
1922 | Setting public phase via pushkey | |||
|
1923 | ||||
|
1924 | $ hg phase --draft --force -r . | |||
|
1925 | ||||
|
1926 | $ debugwireproto << EOF | |||
|
1927 | > command pushkey | |||
|
1928 | > namespace phases | |||
|
1929 | > key 7127240a084fd9dc86fe8d1f98e26229161ec82b | |||
|
1930 | > old 1 | |||
|
1931 | > new 0 | |||
|
1932 | > EOF | |||
|
1933 | testing ssh1 | |||
|
1934 | creating ssh peer from handshake results | |||
|
1935 | i> write(104) -> None: | |||
|
1936 | i> hello\n | |||
|
1937 | i> between\n | |||
|
1938 | i> pairs 81\n | |||
|
1939 | i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 | |||
|
1940 | i> flush() -> None | |||
|
1941 | o> readline() -> 4: | |||
|
1942 | o> 384\n | |||
|
1943 | o> readline() -> 384: | |||
|
1944 | o> capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n | |||
|
1945 | o> readline() -> 2: | |||
|
1946 | o> 1\n | |||
|
1947 | o> readline() -> 1: | |||
|
1948 | o> \n | |||
|
1949 | sending pushkey command | |||
|
1950 | i> write(8) -> None: | |||
|
1951 | i> pushkey\n | |||
|
1952 | i> write(7) -> None: | |||
|
1953 | i> key 40\n | |||
|
1954 | i> write(40) -> None: 7127240a084fd9dc86fe8d1f98e26229161ec82b | |||
|
1955 | i> write(12) -> None: | |||
|
1956 | i> namespace 6\n | |||
|
1957 | i> write(6) -> None: phases | |||
|
1958 | i> write(6) -> None: | |||
|
1959 | i> new 1\n | |||
|
1960 | i> write(1) -> None: 0 | |||
|
1961 | i> write(6) -> None: | |||
|
1962 | i> old 1\n | |||
|
1963 | i> write(1) -> None: 1 | |||
|
1964 | i> flush() -> None | |||
|
1965 | o> bufferedreadline() -> 2: | |||
|
1966 | o> 2\n | |||
|
1967 | o> bufferedread(2) -> 2: | |||
|
1968 | o> 1\n | |||
|
1969 | response: 1\n | |||
|
1970 | ||||
|
1971 | testing ssh2 | |||
|
1972 | creating ssh peer from handshake results | |||
|
1973 | i> write(171) -> None: | |||
|
1974 | i> upgrade * proto=exp-ssh-v2-0001\n (glob) | |||
|
1975 | i> hello\n | |||
|
1976 | i> between\n | |||
|
1977 | i> pairs 81\n | |||
|
1978 | i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 | |||
|
1979 | i> flush() -> None | |||
|
1980 | o> readline() -> 62: | |||
|
1981 | o> upgraded * exp-ssh-v2-0001\n (glob) | |||
|
1982 | o> readline() -> 4: | |||
|
1983 | o> 383\n | |||
|
1984 | o> read(383) -> 383: capabilities: lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN | |||
|
1985 | o> read(1) -> 1: | |||
|
1986 | o> \n | |||
|
1987 | sending pushkey command | |||
|
1988 | i> write(8) -> None: | |||
|
1989 | i> pushkey\n | |||
|
1990 | i> write(7) -> None: | |||
|
1991 | i> key 40\n | |||
|
1992 | i> write(40) -> None: 7127240a084fd9dc86fe8d1f98e26229161ec82b | |||
|
1993 | i> write(12) -> None: | |||
|
1994 | i> namespace 6\n | |||
|
1995 | i> write(6) -> None: phases | |||
|
1996 | i> write(6) -> None: | |||
|
1997 | i> new 1\n | |||
|
1998 | i> write(1) -> None: 0 | |||
|
1999 | i> write(6) -> None: | |||
|
2000 | i> old 1\n | |||
|
2001 | i> write(1) -> None: 1 | |||
|
2002 | i> flush() -> None | |||
|
2003 | o> bufferedreadline() -> 2: | |||
|
2004 | o> 2\n | |||
|
2005 | o> bufferedread(2) -> 2: | |||
|
2006 | o> 1\n | |||
|
2007 | response: 1\n | |||
|
2008 | ||||
|
2009 | $ hg phase . | |||
|
2010 | 4: public | |||
|
2011 | ||||
1834 | $ cd .. |
|
2012 | $ cd .. | |
1835 |
|
2013 | |||
1836 | Test batching of requests |
|
2014 | Test batching of requests |
General Comments 0
You need to be logged in to leave comments.
Login now