Mercurial > hg
comparison tests/test-revset.t @ 25998:a7527c5769bb
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 10 Aug 2015 15:30:28 -0500 |
parents | 5214cbdc37e5 b12e00a05d57 |
children | cc3a30ff9490 |
comparison
equal
deleted
inserted
replaced
25994:d6beeb618700 | 25998:a7527c5769bb |
---|---|
1184 2 | 1184 2 |
1185 3 | 1185 3 |
1186 4 | 1186 4 |
1187 5 | 1187 5 |
1188 | 1188 |
1189 no crash by empty group "()" while optimizing `or` operations | |
1190 | |
1191 $ try --optimize '0|()' | |
1192 (or | |
1193 ('symbol', '0') | |
1194 (group | |
1195 None)) | |
1196 * optimized: | |
1197 (or | |
1198 ('symbol', '0') | |
1199 None) | |
1200 hg: parse error: missing argument | |
1201 [255] | |
1202 | |
1189 test that chained `or` operations never eat up stack (issue4624) | 1203 test that chained `or` operations never eat up stack (issue4624) |
1190 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions) | 1204 (uses `0:1` instead of `0` to avoid future optimization of trivial revisions) |
1191 | 1205 |
1192 $ hg log -T '{rev}\n' -r "`python -c "print '|'.join(['0:1'] * 500)"`" | 1206 $ hg log -T '{rev}\n' -r "`python -c "print '|'.join(['0:1'] * 500)"`" |
1193 0 | 1207 0 |
1269 * set: | 1283 * set: |
1270 <baseset+ [3, 5, 6]> | 1284 <baseset+ [3, 5, 6]> |
1271 3 | 1285 3 |
1272 5 | 1286 5 |
1273 6 | 1287 6 |
1288 | |
1289 no crash by empty group "()" while optimizing to "only()" | |
1290 | |
1291 $ try --optimize '::1 and ()' | |
1292 (and | |
1293 (dagrangepre | |
1294 ('symbol', '1')) | |
1295 (group | |
1296 None)) | |
1297 * optimized: | |
1298 (and | |
1299 None | |
1300 (func | |
1301 ('symbol', 'ancestors') | |
1302 ('symbol', '1'))) | |
1303 hg: parse error: missing argument | |
1304 [255] | |
1274 | 1305 |
1275 we can use patterns when searching for tags | 1306 we can use patterns when searching for tags |
1276 | 1307 |
1277 $ log 'tag("1..*")' | 1308 $ log 'tag("1..*")' |
1278 abort: tag '1..*' does not exist! | 1309 abort: tag '1..*' does not exist! |