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
Merge requests
!261
RHGitaly ListCommitsByRefName
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
RHGitaly ListCommitsByRefName
topic/stable/rhgitaly-list-commits-by-ref-name
into
branch/stable
Overview
0
Commits
3
Pipelines
3
Changes
2
Merged
Georges Racinet
requested to merge
topic/stable/rhgitaly-list-commits-by-ref-name
into
branch/stable
9 months ago
Overview
0
Commits
3
Pipelines
3
Changes
2
Expand
Closes
#146
0
0
Merge request reports
Viewing commit
a625d0bf
Prev
Next
Show latest version
2 files
+
23
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
a625d0bf
gitlab_ref: added `parse_keep_around_ref_path` method
· a625d0bf
Georges Racinet
authored
9 months ago
It will be useful in various tests.
hgitaly/tests/test_gitlab_ref.py
+
11
−
0
Options
@@ -25,6 +25,8 @@
gitlab_special_ref_target
,
iter_gitlab_special_refs_as_refs
,
iter_keep_arounds_as_refs
,
keep_around_ref_path
,
parse_keep_around_ref_path
,
)
@@ -143,3 +145,12 @@
(
b
'
refs/keep-around/
'
+
sha_bytes
,
ctx
)]
assert
list
(
iter_keep_arounds_as_refs
(
repo
,
deref
=
False
))
==
[
(
b
'
refs/keep-around/
'
+
sha_bytes
,
sha_str
)]
def
test_parse_keep_around_ref_path
():
sha
=
b
'
12abdc43
'
*
5
ka_ref
=
b
'
refs/keep-around/
'
+
sha
assert
parse_keep_around_ref_path
(
ka_ref
)
==
sha
assert
keep_around_ref_path
(
sha
)
==
ka_ref
assert
parse_keep_around_ref_path
(
b
'
refs/pipeline/17
'
)
is
None
Loading