Skip to content
Snippets Groups Projects
Commit dd7ba631 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

data-env: start registering graph related information

This will help benchmark to make decision about when they can be run.
parent 8d322a37
No related branches found
No related tags found
1 merge request!15basic data-setup
#!/bin/bash
#
# Simple script to record graph information about the data-env's repo
set -euo pipefail
if [ $# -ne 1 ]; then
echo >&2 "USAGE: setup-01-graph.sh DATA-ENV-PATH"
echo >&2 " DATA-ENV-PATH: the path to that data-env"
fi
data_env_directory=$1
desc="${data_env_directory}/data-env.poulpe"
repository_path="`env-desc get "$desc" bench-input-vars.mercurial.main-repo-path`"
repo="$data_env_directory/$repository_path"
token="special-token-sdljlajslgjasljdlkasjlgjsjga-match-me"
nb_revs=`hg log --template "${token}\n" -R $repo | grep $token | wc -l`
env-desc set --int "$desc" data-env-vars.mercurial.repo.graph.visible-revision-count $nb_revs
......@@ -31,6 +31,8 @@
echo "create the base data-env"
"${script_dir}"/setup-00-minimal.sh $env_name $data_env_directory $repository_path
echo "register graph details"
"${script_dir}"/setup-01-graph.sh $data_env_directory
echo "register the format details"
"${script_dir}"/setup-10-format.sh $data_env_directory
echo "setup for \`hg status\` benchmark"
......
......@@ -18,6 +18,7 @@
$ "${SETUP_PATH}"/setup-full.sh "my-test-data-env" my-data-env base-repo
create the base data-env
creating new file: "my-data-env/data-env.poulpe"
register graph details
register the format details
setup for `hg status` benchmark
......@@ -47,6 +48,8 @@
share-safe = yes
sparserevlog = yes
tracked-hint = no
graph:
visible-revision-count = 1524
name = my-test-data-env
poulpe-environment:
environment-type = data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment