scraper/tfs/__init__.py
def create_tfs_tfvc_client(url, token=None):
    """
    Creates a TFS TFVC Client to pull TFVC repo info
    """
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_connection = create_tfs_connection(url, token)
    tfs_tfvc_client = tfs_connection.get_client('vsts.tfvc.v4_1.tfvc_client.TfvcClient')

    if tfs_tfvc_client is None:
        msg = 'Unable to create TFS Git Client, failed to connect to TFS Enterprise (%s) with provided token.'
        raise RuntimeError(msg, url)

    return tfs_tfvc_client
def create_tfs_tfvc_client(url, token=None):
    """
    Creates a TFS TFVC Client to pull TFVC repo info
    """
    if token is None:
        token = os.environ.get('TFS_API_TOKEN', None)

    tfs_connection = create_tfs_connection(url, token)
    tfs_tfvc_client = tfs_connection.get_client('vsts.tfvc.v4_1.tfvc_client.TfvcClient')

    if tfs_tfvc_client is None:
        msg = 'Unable to create TFS Git Client, failed to connect to TFS Enterprise (%s) with provided token.'
        raise RuntimeError(msg, url)

    return tfs_tfvc_client
Creates a TFS TFVC Client to pull TFVC repo info