##// END OF EJS Templates
debugrevspec: show expanded/concatenated states before printing trees...
Yuya Nishihara -
r28629:d6f8a153 default
parent child Browse files
Show More
@@ -3463,11 +3463,11 b' def debugrevspec(ui, repo, expr, **opts)'
3463 3463 ui.note(revset.prettyformat(tree), "\n")
3464 3464 newtree = revset.findaliases(ui, tree)
3465 3465 if newtree != tree:
3466 ui.note(revset.prettyformat(newtree), "\n")
3466 ui.note("* expanded:\n", revset.prettyformat(newtree), "\n")
3467 3467 tree = newtree
3468 3468 newtree = revset.foldconcat(tree)
3469 3469 if newtree != tree:
3470 ui.note(revset.prettyformat(newtree), "\n")
3470 ui.note("* concatenated:\n", revset.prettyformat(newtree), "\n")
3471 3471 if opts["optimize"]:
3472 3472 weight, optimizedtree = revset.optimize(newtree, True)
3473 3473 ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
@@ -1590,6 +1590,7 b' aliases:'
1590 1590
1591 1591 $ try m
1592 1592 ('symbol', 'm')
1593 * expanded:
1593 1594 (func
1594 1595 ('symbol', 'merge')
1595 1596 None)
@@ -1610,6 +1611,7 b' aliases:'
1610 1611 $ export HGPLAINEXCEPT
1611 1612 $ try m
1612 1613 ('symbol', 'm')
1614 * expanded:
1613 1615 (func
1614 1616 ('symbol', 'merge')
1615 1617 None)
@@ -1626,6 +1628,7 b' aliases:'
1626 1628 (func
1627 1629 ('symbol', 'p2')
1628 1630 ('symbol', '.'))
1631 * expanded:
1629 1632 (func
1630 1633 ('symbol', 'p1')
1631 1634 ('symbol', '.'))
@@ -1648,6 +1651,7 b' aliases:'
1648 1651 (func
1649 1652 ('symbol', 'p2')
1650 1653 ('symbol', '.'))
1654 * expanded:
1651 1655 (func
1652 1656 ('symbol', 'p1')
1653 1657 ('symbol', '.'))
@@ -1662,6 +1666,7 b' test alias recursion'
1662 1666
1663 1667 $ try sincem
1664 1668 ('symbol', 'sincem')
1669 * expanded:
1665 1670 (func
1666 1671 ('symbol', 'descendants')
1667 1672 (func
@@ -1697,6 +1702,7 b' test infinite recursion'
1697 1702 ('symbol', '1')
1698 1703 ('symbol', '2')))
1699 1704 ('symbol', '3')))
1705 * expanded:
1700 1706 (or
1701 1707 ('symbol', '3')
1702 1708 (or
@@ -1721,6 +1727,7 b' test nesting and variable passing'
1721 1727 (range
1722 1728 ('symbol', '2')
1723 1729 ('symbol', '5')))
1730 * expanded:
1724 1731 (func
1725 1732 ('symbol', 'max')
1726 1733 (range
@@ -1749,6 +1756,7 b' test chained `or` operations are flatten'
1749 1756 (range
1750 1757 ('symbol', '2')
1751 1758 ('symbol', '3'))))
1759 * expanded:
1752 1760 (or
1753 1761 (range
1754 1762 ('symbol', '0')
@@ -1782,6 +1790,7 b' far away.'
1782 1790 (range
1783 1791 ('symbol', '2')
1784 1792 ('symbol', '5')))
1793 * expanded:
1785 1794 (func
1786 1795 ('symbol', 'descendants')
1787 1796 (func
@@ -1829,6 +1838,7 b' far away.'
1829 1838 (list
1830 1839 ('string', 'foo')
1831 1840 ('symbol', 'tip')))
1841 * expanded:
1832 1842 (or
1833 1843 ('symbol', 'tip')
1834 1844 (func
@@ -1848,6 +1858,7 b' far away.'
1848 1858 (range
1849 1859 ('symbol', '2')
1850 1860 ('symbol', '5')))
1861 * expanded:
1851 1862 (func
1852 1863 ('symbol', 'reverse')
1853 1864 (func
@@ -1871,6 +1882,7 b' far away.'
1871 1882 ('symbol', '2')
1872 1883 ('symbol', '3'))
1873 1884 ('symbol', 'date')))
1885 * expanded:
1874 1886 (func
1875 1887 ('symbol', 'reverse')
1876 1888 (func
@@ -1915,6 +1927,7 b' far away.'
1915 1927 ('symbol', 'x')
1916 1928 ('symbol', 'x')
1917 1929 ('symbol', 'date')))
1930 * expanded:
1918 1931 (func
1919 1932 ('symbol', 'reverse')
1920 1933 (func
@@ -2134,6 +2147,7 b' tests for concatenation of strings/symbo'
2134 2147 ('string', '5f5'))
2135 2148 ('symbol', '1ee'))
2136 2149 ('string', 'ce5'))
2150 * concatenated:
2137 2151 ('string', '2785f51eece5')
2138 2152 * set:
2139 2153 <baseset [0]>
@@ -2148,6 +2162,7 b' tests for concatenation of strings/symbo'
2148 2162 ('string', '5f5')
2149 2163 ('symbol', '1ee')
2150 2164 ('string', 'ce5')))
2165 * expanded:
2151 2166 (_concat
2152 2167 (_concat
2153 2168 (_concat
@@ -2155,6 +2170,7 b' tests for concatenation of strings/symbo'
2155 2170 ('string', '5f5'))
2156 2171 ('symbol', '1ee'))
2157 2172 ('string', 'ce5'))
2173 * concatenated:
2158 2174 ('string', '2785f51eece5')
2159 2175 * set:
2160 2176 <baseset [0]>
General Comments 0
You need to be logged in to leave comments. Login now