changeset 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 94faa2e84094
files contrib/perf-utils/discovery-helper.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/perf-utils/discovery-helper.sh	Thu Mar 07 17:21:22 2019 +0100
+++ b/contrib/perf-utils/discovery-helper.sh	Fri Mar 08 00:00:44 2019 +0100
@@ -42,8 +42,8 @@
 depth="$1"
 shift
 
-leftrepo="${repo}-left"
-rightrepo="${repo}-right"
+leftrepo="${repo}-${nbheads}h-${depth}d-left"
+rightrepo="${repo}-${nbheads}h-${depth}d-right"
 
 left="first(sort(heads(all()), 'desc'), $nbheads)"
 right="last(sort(heads(all()), 'desc'), $nbheads)"