tests/test-revset.t
changeset 28689 a14732e08fec
parent 28688 3e0d03c3c594
child 28690 b56bf98c8afb
equal deleted inserted replaced
28688:3e0d03c3c594 28689:a14732e08fec
  1818   <filteredset
  1818   <filteredset
  1819     <baseset [0]>,
  1819     <baseset [0]>,
  1820     <spanset+ 0:9>>
  1820     <spanset+ 0:9>>
  1821   0
  1821   0
  1822 
  1822 
  1823   $ echo 'injectparamasstring2 = max(_aliasarg("$1"))' >> .hg/hgrc
       
  1824   $ echo 'callinjection2($1) = descendants(injectparamasstring2)' >> .hg/hgrc
       
  1825   $ try 'callinjection2(2:5)'
       
  1826   (func
       
  1827     ('symbol', 'callinjection2')
       
  1828     (range
       
  1829       ('symbol', '2')
       
  1830       ('symbol', '5')))
       
  1831   abort: failed to parse the definition of revset alias "injectparamasstring2": unknown identifier: _aliasarg
       
  1832   [255]
       
  1833   $ hg debugrevspec --debug --config revsetalias.anotherbadone='branch(' "tip"
  1823   $ hg debugrevspec --debug --config revsetalias.anotherbadone='branch(' "tip"
  1834   ('symbol', 'tip')
  1824   ('symbol', 'tip')
  1835   warning: failed to parse the definition of revset alias "anotherbadone": at 7: not a prefix: end
  1825   warning: failed to parse the definition of revset alias "anotherbadone": at 7: not a prefix: end
  1836   warning: failed to parse the definition of revset alias "injectparamasstring2": unknown identifier: _aliasarg
       
  1837   * set:
  1826   * set:
  1838   <baseset [9]>
  1827   <baseset [9]>
  1839   9
  1828   9
  1840   >>> data = file('.hg/hgrc', 'rb').read()
       
  1841   >>> file('.hg/hgrc', 'wb').write(data.replace('_aliasarg', ''))
       
  1842 
  1829 
  1843   $ try 'tip'
  1830   $ try 'tip'
  1844   ('symbol', 'tip')
  1831   ('symbol', 'tip')
  1845   * set:
  1832   * set:
  1846   <baseset [9]>
  1833   <baseset [9]>