comparison tests/test-inhibit.t @ 1508:8dfb88ca0c08

directaccess: inspect trees of len() > 3 Previously, when inspecting revset AST's we'd only traverse down the tree if it was length 3 ([op, left, right]). In some situations, like 'or' the tree node will be greater than length 3 ([op, first, second, ..., nth]). So we need to traverse all the parts of the node to catch all the symbols.
author Durham Goode <durham@fb.com>
date Tue, 29 Sep 2015 09:47:10 -0700
parents f869033391b9
children 74cf5a69f201 0d8973818980
comparison
equal deleted inserted replaced
1507:6f574c76c142 1508:8dfb88ca0c08
355 $ hg export 1 3 355 $ hg export 1 3
356 abort: hidden revision '1'! 356 abort: hidden revision '1'!
357 (use --hidden to access hidden revisions) 357 (use --hidden to access hidden revisions)
358 [255] 358 [255]
359 359
360
361 Test directaccess in a larger revset
362
363 $ hg log -r '. + .^ + 2db36d8066ff' -T '{node|short}\n'
364 55c73a90e4b4
365 cf5c4f4554ce
366 2db36d8066ff
360 367
361 With severals hidden sha, rebase of one hidden stack onto another one: 368 With severals hidden sha, rebase of one hidden stack onto another one:
362 $ hg update -C 0 369 $ hg update -C 0
363 0 files updated, 0 files merged, 4 files removed, 0 files unresolved 370 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
364 $ mkcommit cK 371 $ mkcommit cK