tests/test-revset.t
branchstable
changeset 25996 b12e00a05d57
parent 25995 4f703dcc626f
child 25998 a7527c5769bb
equal deleted inserted replaced
25995:4f703dcc626f 25996:b12e00a05d57
  1142   2
  1142   2
  1143   3
  1143   3
  1144   4
  1144   4
  1145   5
  1145   5
  1146 
  1146 
       
  1147 no crash by empty group "()" while optimizing `or` operations
       
  1148 
       
  1149   $ try --optimize '0|()'
       
  1150   (or
       
  1151     ('symbol', '0')
       
  1152     (group
       
  1153       None))
       
  1154   * optimized:
       
  1155   (or
       
  1156     ('symbol', '0')
       
  1157     None)
       
  1158   hg: parse error: missing argument
       
  1159   [255]
       
  1160 
  1147 test that chained `or` operations never eat up stack (issue4624)
  1161 test that chained `or` operations never eat up stack (issue4624)
  1148 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions)
  1162 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions)
  1149 
  1163 
  1150   $ hg log -T '{rev}\n' -r "`python -c "print '|'.join(['0:1'] * 500)"`"
  1164   $ hg log -T '{rev}\n' -r "`python -c "print '|'.join(['0:1'] * 500)"`"
  1151   0
  1165   0