관리-도구
편집 파일: mercurial.cpython-38.pyc
U &?�f� � @ s� d dl Z d dlZd dlZd dlmZmZmZ d dlmZm Z d dl mZmZ d dl mZ d dlmZ d dlmZmZmZmZ e�e�ZG dd � d e�Ze�e� dS ) � N)�List�Optional�Tuple)� BadCommand�InstallationError)� HiddenText�display_path)�make_command)�path_to_url)� RevOptions�VersionControl�(find_path_to_project_root_from_repo_root�vcsc s e Zd ZdZdZdZdZeee e d�dd��Z eeee dd �d d�Zeeedd�d d�Zeeedd�dd�Zeeed�dd��Zeeed�dd��Zeeed�dd��Zeeee ed�dd��Zeeee d�dd��Zeeee d�� fdd��Z� ZS )� Mercurial�hgz.hg�clone)zhg+filezhg+httpzhg+httpszhg+sshzhg+static-http)�rev�returnc C s d| � �gS )Nz--rev=� )r r r �I/opt/hc_python/lib/python3.8/site-packages/pip/_internal/vcs/mercurial.py�get_base_rev_args s zMercurial.get_base_rev_argsN)�dest�url�rev_options� verbosityr c C s� |� � }t�d||t|�� |dkr*d}n |dkr8d}n|dkrFd}nd}| �td |||f�� � | jtd||�� f�� |d� d S )NzCloning hg %s%s to %sr )z--quiet� r � )� --verbose)r z--debugr � --noupdate�update��cwd)r r )r )� to_display�logger�infor �run_commandr �to_args)�selfr r r r �rev_display�flagsr r r � fetch_new$ s&