# HG changeset patch # User Yuya Nishihara # Date 2018-06-27 14:33:57 # Node ID b2d5ad03f31a5a59e72216f29de6b68b3b7e6561 # Parent de275ab362cb37d9a6fc166fbe158ebcad93d373 test-revset: show that order of heads() can be wrong diff --git a/tests/test-revset.t b/tests/test-revset.t --- a/tests/test-revset.t +++ b/tests/test-revset.t @@ -1357,8 +1357,40 @@ test author 6 7 9 + +Test heads + $ log 'heads(6::)' 7 + + heads() can be computed in subset '9:' + + $ hg debugrevspec -s '9: & heads(all())' + * set: + , + >, + , set([0, 1, 2, 3, 4, 5, 6, 8])>>> + 9 + + BROKEN: but should follow the order of the subset + + $ log 'heads(all())' + 7 + 9 + $ log 'heads(tip:0)' + 9 + 7 + $ log 'tip:0 & heads(all())' + 9 + 7 + $ log 'tip:0 & heads(0:tip)' + 7 + 9 + $ log 'keyword(issue)' 6 $ log 'keyword("test a")'