Mercurial > hg
comparison contrib/perf-utils/discovery-helper.sh @ 41895:c1017bceb6ec
discovery-helper: reflect argument value in the name of the results
It is common to create multiple pairs of repositories using different argument
values. Recording the argument value in the results names has two main
advantages:
* It is easy to remember the value used to create a pair,
* It get simpler to create multiple pair at the same time from the same source.
Previously, running: `./discovery-helper.sh pypy 50 10` would create a
`pypy-left` and `pypy-right` repository. Now it will create `pypy-50h-10d-left`
and `pypy-50h-10d-right`.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 08 Mar 2019 00:00:44 +0100 |
parents | aea6bc63884d |
children | 4f283b7dac44 |
comparison
equal
deleted
inserted
replaced
41894:aea6bc63884d | 41895:c1017bceb6ec |
---|---|
40 shift | 40 shift |
41 | 41 |
42 depth="$1" | 42 depth="$1" |
43 shift | 43 shift |
44 | 44 |
45 leftrepo="${repo}-left" | 45 leftrepo="${repo}-${nbheads}h-${depth}d-left" |
46 rightrepo="${repo}-right" | 46 rightrepo="${repo}-${nbheads}h-${depth}d-right" |
47 | 47 |
48 left="first(sort(heads(all()), 'desc'), $nbheads)" | 48 left="first(sort(heads(all()), 'desc'), $nbheads)" |
49 right="last(sort(heads(all()), 'desc'), $nbheads)" | 49 right="last(sort(heads(all()), 'desc'), $nbheads)" |
50 | 50 |
51 leftsubset="ancestors($left, $depth) and only($left, heads(all() - $left))" | 51 leftsubset="ancestors($left, $depth) and only($left, heads(all() - $left))" |