tests/test-setdiscovery.t
changeset 46476 4f5e9a77ff7a
parent 46359 0600e8467101
child 46768 3a8cf5b9c820
equal deleted inserted replaced
46473:d6e73351533b 46476:4f5e9a77ff7a
  1586       heads:                     1
  1586       heads:                     1
  1587       roots:                     1
  1587       roots:                     1
  1588       common:                    0
  1588       common:                    0
  1589       missing:                   1
  1589       missing:                   1
  1590   common heads: 66f7d451a68b
  1590   common heads: 66f7d451a68b
       
  1591 
       
  1592   $ cd ..
       
  1593 
       
  1594 
       
  1595 Test debuging discovery using different subset of the same repository
       
  1596 =====================================================================
       
  1597 
       
  1598 remote is a local subset
       
  1599 ------------------------
       
  1600 
       
  1601 remote will be last 25 heads of the local graph
       
  1602 
       
  1603   $ cd $TESTTMP/manyheads
       
  1604   $ hg -R a debugdiscovery \
       
  1605   > --debug \
       
  1606   > --remote-as-revs 'last(heads(all()), 25)' \
       
  1607   > --config devel.discovery.randomize=false
       
  1608   query 1; heads
       
  1609   searching for changes
       
  1610   all remote heads known locally
       
  1611   elapsed time:  * seconds (glob)
       
  1612   round-trips:                   1
       
  1613   heads summary:
       
  1614     total common heads:         25
       
  1615       also local heads:         25
       
  1616       also remote heads:        25
       
  1617       both:                     25
       
  1618     local heads:               260
       
  1619       common:                   25
       
  1620       missing:                 235
       
  1621     remote heads:               25
       
  1622       common:                   25
       
  1623       unknown:                   0
       
  1624   local changesets:           1340
       
  1625     common:                    400
       
  1626       heads:                    25
       
  1627       roots:                     1
       
  1628     missing:                   940
       
  1629       heads:                   235
       
  1630       roots:                   235
       
  1631     first undecided set:       940
       
  1632       heads:                   235
       
  1633       roots:                   235
       
  1634       common:                    0
       
  1635       missing:                 940
       
  1636   common heads: 0dfd965d91c6 0fe09b60448d 14a17233ce9d 175c0a3072cf 1c51e2c80832 1e51600e0698 24eb5f9bdbab 25ce09526613 36bd00abde57 426989fdefa0 596d87362679 5dd1039ea5c0 5ef24f022278 5f230dc19419 80b39998accb 88f40688ffb5 9e37ddf8c632 abf4d55b075e b2ce801fddfe b368b6ac3ce3 c959bf2e869c c9fba6ba4e2e d783207cf649 d9a51e256f21 e3717a4e3753
       
  1637 
       
  1638 local is a local subset
       
  1639 ------------------------
       
  1640 
       
  1641 remote will be last 25 heads of the local graph
       
  1642 
       
  1643   $ cd $TESTTMP/manyheads
       
  1644   $ hg -R a debugdiscovery b \
       
  1645   > --debug \
       
  1646   > --local-as-revs 'first(heads(all()), 25)' \
       
  1647   > --config devel.discovery.randomize=false
       
  1648   comparing with b
       
  1649   query 1; heads
       
  1650   searching for changes
       
  1651   taking quick initial sample
       
  1652   query 2; still undecided: 375, sample size is: 81
       
  1653   sampling from both directions
       
  1654   query 3; still undecided: 3, sample size is: 3
       
  1655   3 total queries *s (glob)
       
  1656   elapsed time:  * seconds (glob)
       
  1657   round-trips:                   3
       
  1658   heads summary:
       
  1659     total common heads:          1
       
  1660       also local heads:          0
       
  1661       also remote heads:         0
       
  1662       both:                      0
       
  1663     local heads:                25
       
  1664       common:                    0
       
  1665       missing:                  25
       
  1666     remote heads:                1
       
  1667       common:                    0
       
  1668       unknown:                   1
       
  1669   local changesets:            400
       
  1670     common:                    300
       
  1671       heads:                     1
       
  1672       roots:                     1
       
  1673     missing:                   100
       
  1674       heads:                    25
       
  1675       roots:                    25
       
  1676     first undecided set:       400
       
  1677       heads:                    25
       
  1678       roots:                     1
       
  1679       common:                  300
       
  1680       missing:                 100
       
  1681   common heads: 3ee37d65064a
       
  1682 
       
  1683 both local and remove are subset
       
  1684 ------------------------
       
  1685 
       
  1686 remote will be last 25 heads of the local graph
       
  1687 
       
  1688   $ cd $TESTTMP/manyheads
       
  1689   $ hg -R a debugdiscovery \
       
  1690   > --debug \
       
  1691   > --local-as-revs 'first(heads(all()), 25)' \
       
  1692   > --remote-as-revs 'last(heads(all()), 25)' \
       
  1693   > --config devel.discovery.randomize=false
       
  1694   query 1; heads
       
  1695   searching for changes
       
  1696   taking quick initial sample
       
  1697   query 2; still undecided: 375, sample size is: 81
       
  1698   sampling from both directions
       
  1699   query 3; still undecided: 3, sample size is: 3
       
  1700   3 total queries in *s (glob)
       
  1701   elapsed time:  * seconds (glob)
       
  1702   round-trips:                   3
       
  1703   heads summary:
       
  1704     total common heads:          1
       
  1705       also local heads:          0
       
  1706       also remote heads:         0
       
  1707       both:                      0
       
  1708     local heads:                25
       
  1709       common:                    0
       
  1710       missing:                  25
       
  1711     remote heads:               25
       
  1712       common:                    0
       
  1713       unknown:                  25
       
  1714   local changesets:            400
       
  1715     common:                    300
       
  1716       heads:                     1
       
  1717       roots:                     1
       
  1718     missing:                   100
       
  1719       heads:                    25
       
  1720       roots:                    25
       
  1721     first undecided set:       400
       
  1722       heads:                    25
       
  1723       roots:                     1
       
  1724       common:                  300
       
  1725       missing:                 100
       
  1726   common heads: 3ee37d65064a