Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
scmperf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
scmperf
Commits
426cf7bf08ed
Commit
426cf7bf08ed
authored
6 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
make-reference: use a unique extension for the config file
This make is easier to distinct from other config file.
parent
25b932ea2ac2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
repo-scripts/make-reference
+1
-1
1 addition, 1 deletion
repo-scripts/make-reference
tests/test-make-partials.t
+8
-8
8 additions, 8 deletions
tests/test-make-partials.t
tests/test-make-reference.t
+6
-6
6 additions, 6 deletions
tests/test-make-reference.t
with
15 additions
and
15 deletions
repo-scripts/make-reference
+
1
−
1
View file @
426cf7bf
...
...
@@ -17,7 +17,7 @@
repo_id
=
"
$2
"
repo_main
=
"
${
repo_id
}
"
-reference
repo_details
=
"
${
repo_id
}
"
.
yaml
repo_details
=
"
${
repo_id
}
"
.
benchrepo
repo_tarball
=
"
${
repo_id
}
"
-reference
.tar
### initial clone
...
...
This diff is collapsed.
Click to expand it.
tests/test-make-partials.t
+
8
−
8
View file @
426cf7bf
...
...
@@ -50,7 +50,7 @@
$ mkdir partials-one
$ cd partials-one
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.
yaml
$ make-partial-repos ../p-config.yaml ../local-references/repo4test_A.
benchrepo
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
...
...
@@ -73,7 +73,7 @@
$ mkdir partials-multiple
$ cd partials-multiple
$ make-partial-repos ../p-config.yaml ../local-references/
repo4test_A.yaml ../local-references/repo4test_B.yaml
$ make-partial-repos ../p-config.yaml ../local-references/
*.benchrepo
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)
...
...
@@ -93,5 +93,5 @@
$ mkdir partials-disabled
$ cd partials-disabled
$ grep enabled ../local-references/repo4test_A.
yaml
$ grep enabled ../local-references/repo4test_A.
benchrepo
enabled: Yes
...
...
@@ -97,4 +97,4 @@
enabled: Yes
$ sed -i
'
s/enabled: Yes/enabled: No/
'
../local-references/repo4test_A.
yaml
$ grep enabled ../local-references/repo4test_A.
yaml
$ sed -i
'
s/enabled: Yes/enabled: No/
'
../local-references/repo4test_A.
benchrepo
$ grep enabled ../local-references/repo4test_A.
benchrepo
enabled: No
...
...
@@ -100,8 +100,8 @@
enabled: No
$ make-partial-repos ../p-config.yaml ../local-references/
repo4test_A.yaml ../local-references/repo4test_B.yaml
$ make-partial-repos ../p-config.yaml ../local-references/
*.benchrepo
skipping disabled reference repository: repo4test_A
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
repo4test_B-partial-missing-last-10
repo4test_B-partial-same
...
...
@@ -102,11 +102,11 @@
skipping disabled reference repository: repo4test_A
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
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
$ sed -i
'
s/enabled: Non/enabled: Yes/
'
../local-references/repo4test_A.
benchrepo
$ grep enabled ../local-references/repo4test_A.
benchrepo
enabled: No
$ cd ..
...
...
This diff is collapsed.
Click to expand it.
tests/test-make-reference.t
+
6
−
6
View file @
426cf7bf
...
...
@@ -33,5 +33,5 @@
$
ls
-
1
my
-
reference
-
reference
my
-
reference
-
reference
.
tar
my
-
reference
.
yaml
my
-
reference
.
benchrepo
some
-
dir
...
...
@@ -37,5 +37,5 @@
some
-
dir
$
cat
my
-
reference
.
yaml
$
cat
my
-
reference
.
benchrepo
reference
-
repo:
id:
my
-
reference
enabled:
Yes
...
...
@@ -54,7 +54,7 @@
Call
with
existing
data
-----------------
$
rm
-
rf
my
-
reference
.
yaml
my
-
reference
.
tar
$
rm
-
rf
my
-
reference
.
benchrepo
my
-
reference
.
tar
$
make
-
reference
some
-
dir
/
my
-
source
-
repo
my
-
reference
target
repo
already
exists
,
skipping
clone
(
make
sure
this
was
clone
with
the
right
version
)
...
...
@@ -63,5 +63,5 @@
$
ls
-
1
my
-
reference
-
reference
my
-
reference
-
reference
.
tar
my
-
reference
.
yaml
my
-
reference
.
benchrepo
some
-
dir
...
...
@@ -67,5 +67,5 @@
some
-
dir
$
cat
my
-
reference
.
yaml
$
cat
my
-
reference
.
benchrepo
reference
-
repo:
id:
my
-
reference
enabled:
Yes
...
...
@@ -81,7 +81,7 @@
visible:
1
all:
1
$
tar
tf
my
-
reference
-
reference
.
tar
my
-
reference
.
yaml
my
-
reference
.
benchrepo
my
-
reference
-
reference
/
my
-
reference
-
reference
/.hg/
my
-
reference
-
reference
/.hg/
requires
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment