Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hgitaly
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
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
heptapod
hgitaly
Commits
96f9c1b4
Commit
96f9c1b4
authored
1 year ago
by
Georges Racinet
Browse files
Options
Downloads
Patches
Plain Diff
FindCommit Comparison tests: special refs and keep-arounds
parent
9dd82aae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!155
Gitaly v15.7: Matching protocol and fixing Comparison tests
,
!154
FindCommit Comparison tests
Pipeline
#67165
passed
1 year ago
Stage: main
Stage: compat
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests_with_gitaly/test_commit.py
+12
-2
12 additions, 2 deletions
tests_with_gitaly/test_commit.py
with
12 additions
and
2 deletions
tests_with_gitaly/test_commit.py
+
12
−
2
View file @
96f9c1b4
...
...
@@ -221,7 +221,9 @@
ctx0
=
wrapper
.
commit_file
(
'
foo
'
)
wrapper
.
command
(
'
tag
'
,
b
'
start-tag
'
,
rev
=
ctx0
.
hex
())
wrapper
.
commit_file
(
'
foo
'
,
topic
=
'
sampletop
'
)
ctx1
=
wrapper
.
commit_file
(
'
foo
'
,
topic
=
'
sampletop
'
)
mr_ref_path
,
_
=
fixture
.
write_special_ref
(
b
'
merge-requests/2/train
'
,
ctx1
.
hex
())
assert_compare
(
revision
=
ctx0
.
hex
())
assert_compare
(
revision
=
b
'
branch/default
'
)
...
...
@@ -231,7 +233,15 @@
assert_compare
(
revision
=
b
'
start-tag
'
)
assert_compare
(
revision
=
b
'
refs/tags/start-tag
'
)
assert_compare
(
revision
=
b
'
refs/tags/unknown
'
)
# TODO special refs and keep-arounds
assert_compare
(
revision
=
mr_ref_path
)
hg_ka_ref_path
,
git_ka_ref_path
=
fixture
.
create_keep_around
(
ctx1
.
hex
())
# assert_compare() not being able to convert the keep-around ref path from
# Mercurial to Git on the fly, we need to go lower level
hg_resp
=
rpc_helper
.
rpc
(
'
hg
'
,
revision
=
hg_ka_ref_path
)
git_resp
=
rpc_helper
.
rpc
(
'
git
'
,
revision
=
git_ka_ref_path
)
rpc_helper
.
normalize_responses
(
hg_resp
,
git_resp
)
assert
hg_resp
==
git_resp
# TODO cases of collision/shadowing
...
...
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