Mercurial > hg-stable
changeset 16183:112a70c56d6a
test-glog: rewrite more tests using testlog() function
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 26 Feb 2012 17:10:56 +0100 |
parents | bd12ef347680 |
children | 6863caf01daa |
files | tests/test-glog.t |
diffstat | 1 files changed, 6 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- 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]