Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
pip
/
_internal
/
vcs
/
__pycache__
/
File Content:
mercurial.cpython-38.opt-1.pyc
U �Rev � @ 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 )� MercurialZhgz.hg�clone)zhg+filezhg+httpzhg+httpszhg+sshzhg+static-http)�rev�returnc C s | gS )N� )r r r �L/opt/alt/python38/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 )Z to_display�logger�infor �run_commandr �to_args)�selfr r r r Zrev_display�flagsr r r � fetch_new$ s&