Mercurial > hg
comparison tests/test-revset.t @ 38478:b2d5ad03f31a
test-revset: show that order of heads() can be wrong
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 27 Jun 2018 23:33:57 +0900 |
parents | f3033692ccef |
children | 72621094505f |
comparison
equal
deleted
inserted
replaced
38477:de275ab362cb | 38478:b2d5ad03f31a |
---|---|
1355 4 | 1355 4 |
1356 5 | 1356 5 |
1357 6 | 1357 6 |
1358 7 | 1358 7 |
1359 9 | 1359 9 |
1360 | |
1361 Test heads | |
1362 | |
1360 $ log 'heads(6::)' | 1363 $ log 'heads(6::)' |
1361 7 | 1364 7 |
1365 | |
1366 heads() can be computed in subset '9:' | |
1367 | |
1368 $ hg debugrevspec -s '9: & heads(all())' | |
1369 * set: | |
1370 <filteredset | |
1371 <filteredset | |
1372 <baseset [9]>, | |
1373 <spanset+ 0:10>>, | |
1374 <not | |
1375 <filteredset | |
1376 <baseset [9]>, set([0, 1, 2, 3, 4, 5, 6, 8])>>> | |
1377 9 | |
1378 | |
1379 BROKEN: but should follow the order of the subset | |
1380 | |
1381 $ log 'heads(all())' | |
1382 7 | |
1383 9 | |
1384 $ log 'heads(tip:0)' | |
1385 9 | |
1386 7 | |
1387 $ log 'tip:0 & heads(all())' | |
1388 9 | |
1389 7 | |
1390 $ log 'tip:0 & heads(0:tip)' | |
1391 7 | |
1392 9 | |
1393 | |
1362 $ log 'keyword(issue)' | 1394 $ log 'keyword(issue)' |
1363 6 | 1395 6 |
1364 $ log 'keyword("test a")' | 1396 $ log 'keyword("test a")' |
1365 | 1397 |
1366 Test first (=limit) and last | 1398 Test first (=limit) and last |