# HG changeset patch # User Patrick Mezard # Date 1330272656 -3600 # Node ID 112a70c56d6a3b4e22cd5b39cc148208642bb68a # Parent bd12ef347680779796d4ae85e5060879c6cf31ee test-glog: rewrite more tests using testlog() function diff -r bd12ef347680 -r 112a70c56d6a tests/test-glog.t --- a/tests/test-glog.t Sun Feb 26 17:10:55 2012 +0100 +++ b/tests/test-glog.t Sun Feb 26 17:10:56 2012 +0100 @@ -1456,35 +1456,12 @@ ('group', ('group', ('or', ('func', ('symbol', 'keyword'), ('string', 'expand')), ('func', ('symbol', 'keyword'), ('string', 'merge'))))) $ hg log -G --removed --template 'nodetag {rev}\n' | grep nodetag | wc -l \s*0 (re) - $ hg log -G --only-merges --template 'nodetag {rev}\n' | grep nodetag | wc -l - \s*28 (re) - $ hg log -G --no-merges --template 'nodetag {rev}\n' - o nodetag 35 - | - o nodetag 34 - |\ - | \ - | |\ - | | \ - | | |\ - | | | \ - | | | |\ - | | | | \ - | | | | |\ - +-+-+-+-----o nodetag 33 - | | | | | | - +---------o nodetag 29 - | | | | | - +-+-+---o nodetag 27 - | | | |/ - | | | o nodetag 3 - | | |/ - | | o nodetag 2 - | |/ - | o nodetag 1 - |/ - o nodetag 0 - + $ testlog --only-merges + ('group', ('func', ('symbol', 'merge'), None)) + $ testlog --no-merges + ('group', ('not', ('func', ('symbol', 'merge'), None))) + $ testlog --date '2 0 to 4 0' + ('group', ('func', ('symbol', 'date'), ('string', '2 0 to 4 0'))) $ hg log -G -d 'brace ) in a date' abort: invalid date: 'brace ) in a date' [255]