clearml_agent/helper/repo.py
def create(cls, session, execution_info, location):
        # type: (Session, ExecutionInfo, PathLike) -> VCS
        """
        Create a VCS instance for config and url
        :param session: program session
        :param execution_info: task ExecutionInfo
        :param location: (desired) clone location
        """
        url = execution_info.repository
        # We only support git, hg is deprecated
        is_git = True
        # is_git = url.endswith(cls.GIT_SUFFIX)
        vcs_cls = Git if is_git else Hg
        revision = (
            execution_info.version_num
            or execution_info.tag
            or vcs_cls.remote_branch_name(execution_info.branch or vcs_cls.main_branch)
        )
        return vcs_cls(session, url, location, revision)

        Create a VCS instance for config and url
        :param session: program session
        :param execution_info: task ExecutionInfo
        :param location: (desired) clone location
        
Create a VCS instance for config and url
Create a VCS instance for config and url
def create(cls, session, execution_info, location):
        url = execution_info.repository
        is_git = True
        vcs_cls = Git if is_git else Hg
        revision = (
            execution_info.version_num
            or execution_info.tag
            or vcs_cls.remote_branch_name(execution_info.branch or vcs_cls.main_branch)
        )
        return vcs_cls(session, url, location, revision)
def create ( cls , session , execution_info , location ) : url = execution_info . repository is_git = True vcs_cls = Git if is_git else Hg revision = ( execution_info . version_num or execution_info . tag or vcs_cls . remote_branch_name ( execution_info . branch or vcs_cls . main_branch ) ) return vcs_cls ( session , url , location , revision )
Create a VCS instance for config and url
Create a VCS instance for config and url
# type: (Session, ExecutionInfo, PathLike) -> VCS """
        Create a VCS instance for config and url
        :param session: program session
        :param execution_info: task ExecutionInfo
        :param location: (desired) clone location
        """ # We only support git, hg is deprecated # is_git = url.endswith(cls.GIT_SUFFIX)
cls
session
None
execution_info
None
location
(desired) clone location
( desired ) clone location