changeset 16148 | 184cc3c3e0a6 |
parent 16147 | 5607d829bf17 |
child 16149 | 6acbbb0c7381 |
16147:5607d829bf17 | 16148:184cc3c3e0a6 |
---|---|
1412 | | | summary: (32) expand |
1412 | | | summary: (32) expand |
1413 | | | |
1413 | | | |
1414 |
1414 |
1415 Test log -G options |
1415 Test log -G options |
1416 |
1416 |
1417 $ hg log -G -u 'something nice' |
1417 $ testlog() { |
1418 > hg log -G --print-revset "$@" |
|
1419 > hg log --template 'nodetag {rev}\n' "$@" | grep nodetag \ |
|
1420 > | sed 's/.*nodetag/nodetag/' > log.nodes |
|
1421 > hg log -G --template 'nodetag {rev}\n' "$@" | grep nodetag \ |
|
1422 > | sed 's/.*nodetag/nodetag/' > glog.nodes |
|
1423 > diff -u log.nodes glog.nodes |
|
1424 > } |
|
1425 |
|
1426 $ testlog -u test -u not-a-user |
|
1427 ('group', ('group', ('or', ('func', ('symbol', 'user'), ('string', 'test')), ('func', ('symbol', 'user'), ('string', 'not-a-user'))))) |
|
1418 $ hg log -G -b 'something nice' |
1428 $ hg log -G -b 'something nice' |
1419 abort: unknown revision 'something nice'! |
1429 abort: unknown revision 'something nice'! |
1420 [255] |
1430 [255] |
1421 $ hg log -G --print-revset -k 'something' -k 'nice' |
1431 $ hg log -G --print-revset -k 'something' -k 'nice' |
1422 ('group', ('group', ('and', ('func', ('symbol', 'keyword'), ('string', 'something')), ('func', ('symbol', 'keyword'), ('string', 'nice'))))) |
1432 ('group', ('group', ('and', ('func', ('symbol', 'keyword'), ('string', 'something')), ('func', ('symbol', 'keyword'), ('string', 'nice'))))) |