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
20f3754c6ca9
Commit
20f3754c6ca9
authored
7 years ago
by
Boris Feld
Browse files
Options
Downloads
Patches
Plain Diff
Add new debugdiscovery test and update range of exchange tests
parent
97a85ea67bf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/basic_commands.py
+7
-1
7 additions, 1 deletion
benchmarks/basic_commands.py
prepare_repos.py
+1
-1
1 addition, 1 deletion
prepare_repos.py
with
8 additions
and
2 deletions
benchmarks/basic_commands.py
+
7
−
1
View file @
20f3754c
...
...
@@ -141,7 +141,7 @@
class
BaseExchangeTimeSuite
(
BaseTimeTestSuite
):
param_names
=
BaseTimeTestSuite
.
param_names
+
[
'
strip
'
,
'
revset
'
]
params
=
BaseTimeTestSuite
.
params
+
[[
'
same
'
,
'
last(all(), 10)
'
]]
+
[[
None
,
'
default
'
]]
params
=
BaseTimeTestSuite
.
params
+
[[
'
same
'
,
'
last(all(), 10)
'
,
'
last(all(), 100)
'
,
'
last(all(), 1000)
'
]]
+
[[
None
,
'
default
'
]]
def
setup
(
self
,
repo_name
,
strip
,
revset
):
self
.
timer
=
timeit
.
default_timer
...
...
@@ -171,6 +171,12 @@
cmd
.
extend
([
'
-r
'
,
self
.
rev
])
self
.
_single_execute
(
cmd
,
expected_return_code
=
1
if
strip
==
"
same
"
else
0
)
def
time_debugdiscovery
(
self
,
repo_name
,
strip
,
revset
):
cmd
=
[
self
.
hgpath
,
'
--cwd
'
,
self
.
clone_path
,
'
debugdiscovery
'
,
self
.
repo_path
]
# if self.rev:
# cmd.extend(['--rev', self.rev])
self
.
_single_execute
(
cmd
,
expected_return_code
=
1
if
strip
==
"
same
"
else
0
)
class
PushPullTimeSuite
(
BaseExchangeTimeSuite
):
...
...
This diff is collapsed.
Click to expand it.
prepare_repos.py
+
1
−
1
View file @
20f3754c
...
...
@@ -9,7 +9,7 @@
import
yaml
# changesets stripped in partial clones
PARTIAL_REVSET
=
(
"
same
"
,
'
last(all(), 10)
'
,)
PARTIAL_REVSET
=
(
"
same
"
,
'
last(all(), 10)
'
,
'
last(all(), 100)
'
,
'
last(all(), 1000)
'
)
def
read_configuration
(
config_path
):
...
...
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