Download:
child 18:246fe5208556
parent 16:7adaad90a5d1
17:f6be82ed1b09
Anton Shestakov <engored@ya.ru>, Fri, 08 May 2015 15:18:12 +0800
bench: add grepall and grepallf

1 файлов изменено, 6 вставок(+), 0 удалений(-) [+]
bench.py file | annotate | diff | comparison | revisions
--- a/bench.py Thu May 07 13:23:14 2015 +0800
+++ b/bench.py Fri May 08 15:18:12 2015 +0800
@@ -14,6 +14,8 @@
MARKS = OrderedDict((
('blame', 'hg blame README'),
+ ('grepall', 'hg grep "version" --all README'),
+ ('grepallf', 'hg grep "version" --all --follow README'),
('diff', 'hg diff -r "tip~100:tip" README'),
('diffg', 'hg diff -r "tip~100:tip" --git README'),
('stcp', 'hg status --copies README'),
@@ -115,6 +117,10 @@
if mark == 'blame':
cmd += ['blame', rel(TESTREPO, 'README')]
+ elif mark == 'grepall':
+ cmd += ['grep', '--all', 'version', rel(TESTREPO, 'README')]
+ elif mark == 'grepallf':
+ cmd += ['grep', '--all', '--follow', 'version', rel(TESTREPO, 'README')]
elif mark == 'stco':
cmd += ['status', '--copies', rel(TESTREPO, 'README')]
elif mark == 'diff':