comparison tests/test-glog.t @ 14133:28085b82f801

graphlog: always sort revisions topologically The grapher cannot really handled revisions if they are not emitted in topological order. The previous 'reverse()' revset was not enough to achieve that and was replaced by an explicit sort call for simplicity. The --limit option is now also handled as usual with cmdutil.loglimit() instead of a 'limit' revset.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 01 May 2011 15:51:52 +0200
parents 7d3bd0640262
children 267cebac84c3
comparison
equal deleted inserted replaced
14132:7d3bd0640262 14133:28085b82f801
1317 | 1317 |
1318 1318
1319 file(File) + limit + -ra:b, b < tip: 1319 file(File) + limit + -ra:b, b < tip:
1320 1320
1321 $ hg glog -l1 -r32:34 -r 'file("a")' 1321 $ hg glog -l1 -r32:34 -r 'file("a")'
1322 o changeset: 31:621d83e11f67 1322 o changeset: 34:fea3ac5810e0
1323 |\ parent: 21:d42a756af44d 1323 | parent: 32:d06dffa21a31
1324 | | parent: 30:6e11cd4b648f 1324 | user: test
1325 | | user: test 1325 | date: Thu Jan 01 00:00:34 1970 +0000
1326 | | date: Thu Jan 01 00:00:31 1970 +0000 1326 | summary: (34) head
1327 | | summary: (31) expand 1327 |
1328 | |
1329 1328
1330 limit(file(File) and a::b), b < tip: 1329 limit(file(File) and a::b), b < tip:
1331 1330
1332 $ hg glog -r 'limit(file("a") and 32::34, 1)' 1331 $ hg glog -r 'limit(file("a") and 32::34, 1)'
1333 o changeset: 32:d06dffa21a31 1332 o changeset: 32:d06dffa21a31
1455 abort: -G/--graph option is incompatible with --follow with file argument 1454 abort: -G/--graph option is incompatible with --follow with file argument
1456 [255] 1455 [255]
1457 1456
1458 Test multiple revision specifications are correctly handled 1457 Test multiple revision specifications are correctly handled
1459 1458
1460 $ hg log -G -r 27 -r 25 --branch default --template '{rev}\n' 1459 $ hg log -G -r 27 -r 25 -r 21 -r 34 -r 32 -r 31 --template '{rev}\n'
1461 o 25 1460 o 34
1461 |
1462 o 32
1462 |\ 1463 |\
1463 +---o 27 1464 | o 31
1464 | | 1465 | |\
1466 o | | 27
1467 |/ /
1468 | o 25
1469 |/
1470 o 21
1471 |\