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
f716863d
Commit
f716863d
authored
5 years ago
by
Pierre-Yves David
Browse files
Options
Downloads
Patches
Plain Diff
upgrade-reference: add an explicit test about updating format
This test will come handy as we modify the script more.
parent
5b587afd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test-upgrade-reference.t
+40
-0
40 additions, 0 deletions
tests/test-upgrade-reference.t
with
40 additions
and
0 deletions
tests/test-upgrade-reference.t
+
40
−
0
View file @
f716863d
...
...
@@ -154,3 +154,43 @@
$
tar
tf
my
-
source
-
repo
-*-
partial
-
same
.
tar
--
wildcards
'
*/.hg/requires
'
my
-
source
-
repo
-
39241
d24
-
partial
-
same
/.hg/
requires
Check
that
missing
format
entry
get
updated
-------------------------------------------
remove
a
format
entry
from
the
file
$
benchrepofile
=
`
tar tf my-source-repo-*-reference.tar | grep '.benchrepo$'
`
$
tar
xf
my
-
source
-
repo
-*-
reference
.
tar
$benchrepofile
$
grep
-
v
"
fncache: true
"
$benchrepofile
>
tmp
$
mv
tmp
$benchrepofile
$
tar
--
delete
--
file
my
-
source
-
repo
-*-
reference
.
tar
$benchrepofile
$
tar
--
append
--
file
my
-
source
-
repo
-*-
reference
.
tar
$benchrepofile
The
upgrade
script
should
add
the
missing
entry
again
$
tar
xf
my
-
source
-
repo
-*-
reference
.
tar
--
to
-
stdout
$benchrepofile
|
grep
fnache
[
1
]
$
upgrade
-
reference
my
-
source
-
repo
-*-
reference
.
tar
../
p
-
config
.
yaml
Extracting
the
tar
.
Reading
the
original
benchrepo
file
.
Gathering
the
new
benchrepo
data
.
Archiving
the
new
benchrepo
file
.
Writing
the
new
reference
tar
as
my
-
source
-
repo
-*-
reference
.
tar
(
glob
)
Skipping
copy
of
my
-
source
-
repo
-*-
partial
-
missing
-
last
-
10
.
tar
,
not
present
in
reference
archive
directory
(
glob
)
Skipping
copy
of
my
-
source
-
repo
-*-
partial
-
same
.
tar
,
it
already
has
the
right
file
name
(
glob
)
Directory
name
inside
my
-
source
-
repo
-*-
partial
-
same
.
tar
is
correct
(
glob
)
Removing
the
temporary
directory
.
$
tar
xf
my
-
source
-
repo
-*-
reference
.
tar
--
to
-
stdout
$benchrepofile
reference
-
repo:
format
-
info:
compression:
zlib
compression
-
level:
default
dotencode:
true
fncache:
true
generaldelta:
true
plain
-
cl
-
delta:
true
sparserevlog:
true
id:
my
-
source
-
repo
repo
-
prefix:
my
-
source
-
repo
-*
(
glob
)
source:
some
-
dir
/
my
-
source
-
repo
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