# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1533113129 -7200
#      Wed Aug 01 10:45:29 2018 +0200
# Node ID 25b932ea2ac281cee8847e2296fd525c15d69f61
# Parent  6b55cc58b2b82453a1303a03f90d701f47b54b51
make-partial-repos: update naming scheme

This mirror `ID-reference` and seems "better".

diff --git a/repo-scripts/make-partial-repos b/repo-scripts/make-partial-repos
--- a/repo-scripts/make-partial-repos
+++ b/repo-scripts/make-partial-repos
@@ -29,7 +29,7 @@
             if setconfig is not None:
                 revset = setconfig.get('remove')
             repo_suffix = pset
-            partialdir = join('.', "partial-{}-{}".format(repo_name, repo_suffix))
+            partialdir = join('.', "{}-partial-{}".format(repo_name, repo_suffix))
             if not isdir(partialdir):
                 print(
                     "Cloning %s (%s%s) into %s (for exchange benchmarks)"
diff --git a/tests/test-make-partials.t b/tests/test-make-partials.t
--- a/tests/test-make-partials.t
+++ b/tests/test-make-partials.t
@@ -51,16 +51,16 @@
   $ cd partials-one
 
   $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml
-  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./partial-repo4test_A-missing-last-10 (for exchange benchmarks)
-  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./partial-repo4test_A-same (for exchange benchmarks)
+  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks)
+  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks)
   $ ls -1
-  partial-repo4test_A-missing-last-10
-  partial-repo4test_A-same
+  repo4test_A-partial-missing-last-10
+  repo4test_A-partial-same
   $ hg -R ../local-references/repo4test_A-reference tip -T '{rev}:{node}\n'
   52:99cae3713489c109d3f91f755bd6d6ea0363d0d5
-  $ hg -R partial-repo4test_A-missing-last-10 tip -T '{rev}:{node}\n'
+  $ hg -R repo4test_A-partial-missing-last-10 tip -T '{rev}:{node}\n'
   42:511665bca184225b9a5d21d3ffd595045cc2fde7
-  $ hg -R partial-repo4test_A-same tip -T '{rev}:{node}\n'
+  $ hg -R repo4test_A-partial-same tip -T '{rev}:{node}\n'
   52:99cae3713489c109d3f91f755bd6d6ea0363d0d5
 
   $ cd ..
@@ -74,15 +74,15 @@
   $ cd partials-multiple
 
   $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml
-  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./partial-repo4test_A-missing-last-10 (for exchange benchmarks)
-  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./partial-repo4test_A-same (for exchange benchmarks)
-  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./partial-repo4test_B-missing-last-10 (for exchange benchmarks)
-  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./partial-repo4test_B-same (for exchange benchmarks)
+  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of last(all(), 10)) into ./repo4test_A-partial-missing-last-10 (for exchange benchmarks)
+  Cloning repo4test_A (../local-references/repo4test_A-reference stripped of None) into ./repo4test_A-partial-same (for exchange benchmarks)
+  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks)
+  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./repo4test_B-partial-same (for exchange benchmarks)
   $ ls -1
-  partial-repo4test_A-missing-last-10
-  partial-repo4test_A-same
-  partial-repo4test_B-missing-last-10
-  partial-repo4test_B-same
+  repo4test_A-partial-missing-last-10
+  repo4test_A-partial-same
+  repo4test_B-partial-missing-last-10
+  repo4test_B-partial-same
   $ cd ..
 
 Test buiding partial repositories some disabled
@@ -100,11 +100,11 @@
     enabled: No
   $ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.yaml ../local-references/repo4test_B.yaml
   skipping disabled reference repository: repo4test_A
-  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./partial-repo4test_B-missing-last-10 (for exchange benchmarks)
-  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./partial-repo4test_B-same (for exchange benchmarks)
+  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of last(all(), 10)) into ./repo4test_B-partial-missing-last-10 (for exchange benchmarks)
+  Cloning repo4test_B (../local-references/repo4test_B-reference stripped of None) into ./repo4test_B-partial-same (for exchange benchmarks)
   $ ls -1
-  partial-repo4test_B-missing-last-10
-  partial-repo4test_B-same
+  repo4test_B-partial-missing-last-10
+  repo4test_B-partial-same
   $ sed -i 's/enabled: Non/enabled: Yes/' ../local-references/repo4test_A.yaml
   $ grep enabled ../local-references/repo4test_A.yaml
     enabled: No
@@ -112,4 +112,3 @@
 
 
 
-