##// END OF EJS Templates
contrib: make revset benchmark script able to read from stdin...
Pierre-Yves David -
r20747:8c89433c default
parent child Browse files
Show More
@@ -4,8 +4,9 b''
4 # defined by parameter. Checkout one by one and run perfrevset with every
4 # defined by parameter. Checkout one by one and run perfrevset with every
5 # revset in the list to benchmark its performance.
5 # revset in the list to benchmark its performance.
6 #
6 #
7 # First argument is a revset of mercurial own repo to runs against.
7 # - First argument is a revset of mercurial own repo to runs against.
8 # Second argument is the file from which the revset array will be taken
8 # - Second argument is the file from which the revset array will be taken
9 # If second argument is omitted read it from standard input
9 #
10 #
10 # You should run this from the root of your mercurial repository.
11 # You should run this from the root of your mercurial repository.
11 #
12 #
@@ -17,7 +18,13 b' PERF="./hg perfrevset"'
17 BASE_PERF="hg perfrevset"
18 BASE_PERF="hg perfrevset"
18
19
19 TARGETS=$1
20 TARGETS=$1
20 readarray REVSETS < $2
21 shift
22 # read from a file or from standard output
23 if [ $# -ne 0 ]; then
24 readarray REVSETS < $1
25 else
26 readarray REVSETS
27 fi
21
28
22 hg update --quiet
29 hg update --quiet
23
30
General Comments 0
You need to be logged in to leave comments. Login now