##// END OF EJS Templates
revset: add test that should fail if '_aliasarg' tag is removed...
Yuya Nishihara -
r28688:3e0d03c3 default
parent child Browse files
Show More
@@ -1799,6 +1799,27 b' far away.'
1799 abort: unknown revision '$1'!
1799 abort: unknown revision '$1'!
1800 [255]
1800 [255]
1801
1801
1802 test scope of alias expansion: 'universe' is expanded prior to 'shadowall(0)',
1803 but 'all()' should never be substituded to '0()'.
1804
1805 $ echo 'universe = all()' >> .hg/hgrc
1806 $ echo 'shadowall(all) = all and universe' >> .hg/hgrc
1807 $ try 'shadowall(0)'
1808 (func
1809 ('symbol', 'shadowall')
1810 ('symbol', '0'))
1811 * expanded:
1812 (and
1813 ('symbol', '0')
1814 (func
1815 ('symbol', 'all')
1816 None))
1817 * set:
1818 <filteredset
1819 <baseset [0]>,
1820 <spanset+ 0:9>>
1821 0
1822
1802 $ echo 'injectparamasstring2 = max(_aliasarg("$1"))' >> .hg/hgrc
1823 $ echo 'injectparamasstring2 = max(_aliasarg("$1"))' >> .hg/hgrc
1803 $ echo 'callinjection2($1) = descendants(injectparamasstring2)' >> .hg/hgrc
1824 $ echo 'callinjection2($1) = descendants(injectparamasstring2)' >> .hg/hgrc
1804 $ try 'callinjection2(2:5)'
1825 $ try 'callinjection2(2:5)'
General Comments 0
You need to be logged in to leave comments. Login now