diff --git a/suites/hg/benchmarks/commit.pbd b/suites/hg/benchmarks/commit.pbd index dd36ccc521992511dcdc3292fc2a74ac60bc96c9_c3VpdGVzL2hnL2JlbmNobWFya3MvY29tbWl0LnBiZA==..0493e0ae70e6180ad30af93e4c8013d8f7063fa4_c3VpdGVzL2hnL2JlbmNobWFya3MvY29tbWl0LnBiZA== 100644 --- a/suites/hg/benchmarks/commit.pbd +++ b/suites/hg/benchmarks/commit.pbd @@ -10,5 +10,5 @@ MAIN_REPO = "DATA-VARS:mercurial.main-repo-path" [simple-command] -command = "hg commit -m 'poulpebenchmarkrun' -R ../poulpe-temp-source" +command = "hg commit -m 'poulpebenchmarkrun' -R poulpe-temp-source" prepare-run = """ @@ -14,3 +14,2 @@ prepare-run = """ -cd \"$POULPE_DATA_ENV_ROOT\"; rm -rf poulpe-temp-source; @@ -16,5 +15,12 @@ rm -rf poulpe-temp-source; -cp --archive --recursive --reflink=auto \"$POULPE_CWD\" poulpe-temp-source;""" +cp --archive --recursive --reflink=auto \"$MAIN_REPO\" poulpe-temp-source; + +if [ -n \"$NEW_FILE\" ]; then + echo \"BABAR IS GREATEST\" > poulpe-temp-source/TEMPORARY_POULPE_BENCHMARK_FILE_FOO; + hg --cwd poulpe-temp-source add TEMPORARY_POULPE_BENCHMARK_FILE_FOO; +fi +sleep 1; +hg --cwd poulpe-temp-source status;""" [simple-command.variants.dimensions.repo-state.modified] default = true @@ -47,3 +53,6 @@ [simple-command.variants.dimensions.repo-state.modified-and-copied] cwd = "DATA-VARS:mercurial.working-copy.modified-and-copied" + +[simple-command.variants.dimensions.repo-state.add-1-new.environment] +NEW_FILE = "1" diff --git a/suites/hg/benchmarks/commit.pkl b/suites/hg/benchmarks/commit.pkl index dd36ccc521992511dcdc3292fc2a74ac60bc96c9_c3VpdGVzL2hnL2JlbmNobWFya3MvY29tbWl0LnBrbA==..0493e0ae70e6180ad30af93e4c8013d8f7063fa4_c3VpdGVzL2hnL2JlbmNobWFya3MvY29tbWl0LnBrbA== 100644 --- a/suites/hg/benchmarks/commit.pkl +++ b/suites/hg/benchmarks/commit.pkl @@ -8,5 +8,5 @@ ["MAIN_REPO"] = "DATA-VARS:mercurial.main-repo-path" } -command = "hg commit -m 'poulpebenchmarkrun' -R ../poulpe-temp-source" +command = "hg commit -m 'poulpebenchmarkrun' -R poulpe-temp-source" prepare_run = """ @@ -12,3 +12,2 @@ prepare_run = """ -cd "$POULPE_DATA_ENV_ROOT"; rm -rf poulpe-temp-source; @@ -14,5 +13,12 @@ rm -rf poulpe-temp-source; -cp --archive --recursive --reflink=auto "$POULPE_CWD" poulpe-temp-source; +cp --archive --recursive --reflink=auto "$MAIN_REPO" poulpe-temp-source; + +if [ -n "$NEW_FILE" ]; then + echo "BABAR IS GREATEST" > poulpe-temp-source/TEMPORARY_POULPE_BENCHMARK_FILE_FOO; + hg --cwd poulpe-temp-source add TEMPORARY_POULPE_BENCHMARK_FILE_FOO; +fi +sleep 1; +hg --cwd poulpe-temp-source status; """ variants { ["repo-state"] = (v.simple_command["repo-state"]) { @@ -22,6 +28,11 @@ ["clean"] { acceptable_return_codes = new {1} } + ["add-1-new"] { + environment { + ["NEW_FILE"] = "1" + } + } } } }