Skip to content
Snippets Groups Projects
Commit d091c0d1 authored by Georges Racinet's avatar Georges Racinet
Browse files

tag: adopted constant from RefService

Such implementation details do not belong in a service class.
parent 6e3106e9
No related branches found
No related tags found
1 merge request!101RefService.ListRefs: initial implementation
......@@ -91,6 +91,7 @@
has_keep_around,
)
from ..tag import (
EXCLUDED_TAG_TYPES,
iter_gitlab_tags_as_refs,
)
from .. import message
......@@ -99,7 +100,6 @@
logger = logging.getLogger(__name__)
DEFAULT_BRANCH_FILE_NAME = b'default_gitlab_branch'
EXCLUDED_TAG_TYPES = (b'local', None) # 'tip' has type None
FIND_LOCAL_BRANCHES_SORT_BY_TO_INNER = {
FindLocalBranchesRequest.SortBy.NAME: BranchSortBy.FULL_REF_NAME,
FindLocalBranchesRequest.SortBy.UPDATED_ASC: BranchSortBy.UPDATED_ASC,
......
......@@ -8,6 +8,8 @@
gitlab_tag_ref,
)
EXCLUDED_TAG_TYPES = (b'local', None) # 'tip' has type None
def iter_gitlab_tags_as_refs(tags):
"""Iterate on given tags, yielding full Git refs."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment