tests/test-revset.t
changeset 28426 3d39ac06af9a
parent 28424 534f968d33e5
child 28427 969a4615c4c4
equal deleted inserted replaced
28425:02d7faaf455c 28426:3d39ac06af9a
  1982   5:904fa392b941
  1982   5:904fa392b941
  1983   6:e0cc66ef77e8
  1983   6:e0cc66ef77e8
  1984 
  1984 
  1985 issue2549 - correct optimizations
  1985 issue2549 - correct optimizations
  1986 
  1986 
  1987   $ log 'limit(1 or 2 or 3, 2) and not 2'
  1987   $ try 'limit(1 or 2 or 3, 2) and not 2'
       
  1988   (and
       
  1989     (func
       
  1990       ('symbol', 'limit')
       
  1991       (list
       
  1992         (or
       
  1993           ('symbol', '1')
       
  1994           ('symbol', '2')
       
  1995           ('symbol', '3'))
       
  1996         ('symbol', '2')))
       
  1997     (not
       
  1998       ('symbol', '2')))
       
  1999   * set:
       
  2000   <filteredset
       
  2001     <baseset
       
  2002       <limit n=2, offset=0,
       
  2003         <fullreposet+ 0:9>,
       
  2004         <baseset [1, 2, 3]>>>,
       
  2005     <not
       
  2006       <baseset [2]>>>
  1988   1
  2007   1
  1989   $ log 'max(1 or 2) and not 2'
  2008   $ log 'max(1 or 2) and not 2'
  1990   $ log 'min(1 or 2) and not 1'
  2009   $ log 'min(1 or 2) and not 1'
  1991   $ log 'last(1 or 2, 1) and not 2'
  2010   $ try 'last(1 or 2, 1) and not 2'
       
  2011   (and
       
  2012     (func
       
  2013       ('symbol', 'last')
       
  2014       (list
       
  2015         (or
       
  2016           ('symbol', '1')
       
  2017           ('symbol', '2'))
       
  2018         ('symbol', '1')))
       
  2019     (not
       
  2020       ('symbol', '2')))
       
  2021   * set:
       
  2022   <filteredset
       
  2023     <baseset
       
  2024       <last n=1,
       
  2025         <fullreposet+ 0:9>,
       
  2026         <baseset [2, 1]>>>,
       
  2027     <not
       
  2028       <baseset [2]>>>
  1992 
  2029 
  1993 issue4289 - ordering of built-ins
  2030 issue4289 - ordering of built-ins
  1994   $ hg log -M -q -r 3:2
  2031   $ hg log -M -q -r 3:2
  1995   3:8528aa5637f2
  2032   3:8528aa5637f2
  1996   2:5ed5505e9f1c
  2033   2:5ed5505e9f1c