Download:
child 38:c3db41612b8c
parent 36:82ab27e2178f
37:beb7b8bbf3bc
Anton Shestakov <av6@dwimlabs.net>, Mon, 24 Aug 2015 01:21:36 +0800
bench: revsetor and revsetwip marks

1 файлов изменено, 8 вставок(+), 1 удалений(-) [+]
bench.py file | annotate | diff | comparison | revisions
--- a/bench.py Fri Jul 17 01:06:02 2015 +0800
+++ b/bench.py Mon Aug 24 01:21:36 2015 +0800
@@ -12,6 +12,7 @@
from settings import DBPATH, HG, LOCKFILE, TESTHGREPO, TESTREPO, rel
+REVSETWIP = '(parents(not public()) or not public() or . or (head() and branch(default))) and (not obsolete() or unstable()^) and not closed()'
MARKS = OrderedDict((
('blame', 'hg blame README'),
('grepall', 'hg grep "version" --all README'),
@@ -22,7 +23,9 @@
('logfile', 'hg log README'),
('logfilecp', 'hg log --copies README'),
('log1', 'hg log -l1'),
- ('log1000', 'hg log -l1000')
+ ('log1000', 'hg log -l1000'),
+ ('revsetor', 'hg log -r "0|1|2|3|4|5|6|7|8|9"'),
+ ('revsetwip', 'hg log -r "' + REVSETWIP + '"'),
))
@@ -58,6 +61,10 @@
cmd += ['log', '-l1']
elif mark == 'log1000':
cmd += ['log', '-l1000']
+ elif mark == 'revsetor':
+ cmd += ['log', '-r', '0|1|2|3|4|5|6|7|8|9']
+ elif mark == 'revsetwip':
+ cmd += ['log', '-r', REVSETWIP]
while sum(results) < mintime or len(results) < mintries:
if dropcache: