comparison tests/test-revset.t @ 41359:431cf2c8c839

revset: support ranges in #generations relation
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 15 Jan 2019 22:57:09 +0800
parents 5affe1583e1d
children 947b81560583
comparison
equal deleted inserted replaced
41358:0a0927f7549d 41359:431cf2c8c839
646 hg: parse error: relation subscript must be an integer 646 hg: parse error: relation subscript must be an integer
647 [255] 647 [255]
648 $ hg debugrevspec '.#generations[1-2]' 648 $ hg debugrevspec '.#generations[1-2]'
649 hg: parse error: relation subscript must be an integer 649 hg: parse error: relation subscript must be an integer
650 [255] 650 [255]
651 $ hg debugrevspec '.#generations[foo:bar]'
652 hg: parse error: relation subscript bounds must be integers
653 [255]
651 654
652 suggested relations 655 suggested relations
653 656
654 $ hg debugrevspec '.#generafions[0]' 657 $ hg debugrevspec '.#generafions[0]'
655 hg: parse error: unknown identifier: generafions 658 hg: parse error: unknown identifier: generafions
1271 9 1274 9
1272 $ log '.#generations[-1]' 1275 $ log '.#generations[-1]'
1273 8 1276 8
1274 $ log '.#g[(-1)]' 1277 $ log '.#g[(-1)]'
1275 8 1278 8
1279
1280 $ log '6#generations[0:1]'
1281 6
1282 7
1283 $ log '6#generations[-1:1]'
1284 4
1285 5
1286 6
1287 7
1288 $ log '6#generations[0:]'
1289 6
1290 7
1291 $ log '5#generations[:0]'
1292 0
1293 1
1294 3
1295 5
1296 $ log '3#generations[:]'
1297 0
1298 1
1299 3
1300 5
1301 6
1302 7
1276 1303
1277 $ hg debugrevspec -p parsed 'roots(:)#g[2]' 1304 $ hg debugrevspec -p parsed 'roots(:)#g[2]'
1278 * parsed: 1305 * parsed:
1279 (relsubscript 1306 (relsubscript
1280 (func 1307 (func