관리-도구
편집 파일: mercurial.cpython-311.pyc
� �ReQ � �� � d dl Z d dlZd dlZd dlmZmZ d dlmZmZ d dl m Z mZ d dlm Z d dlmZ d dlmZmZmZmZ ej e� � Z G d� d e� � Z ej e� � dS ) � N)�List�Optional)� BadCommand�InstallationError)� HiddenText�display_path)�make_command)�path_to_url)� RevOptions�VersionControl�(find_path_to_project_root_from_repo_root�vcsc � � � e Zd ZdZdZdZdZedede e fd�� � Z ded ed eddfd�Z ded ed eddfd �Zded ed eddfd�Zededefd�� � Zededefd�� � Zededefd�� � Zededee defd�� � Zededee fd�� � Zededee f� fd�� � Z� xZS )� Mercurial�hgz.hg�clone)zhg+filezhg+httpzhg+httpszhg+sshzhg+static-http�rev�returnc � � | gS )N� )r s ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/vcs/mercurial.py�get_base_rev_argszMercurial.get_base_rev_args s � ��u�� �dest�url�rev_optionsNc �> � |� � � }t � d||t |� � � � | � t ddd||� � � � | � t dd|� � � � � |�� � d S )NzCloning hg %s%s to %sr z --noupdate�-q�update��cwd)� to_display�logger�infor �run_commandr �to_args)�selfr r r �rev_displays r � fetch_newzMercurial.fetch_new$ s� � �!�,�,�.�.�����#������� � � � ����g�|�T�3��M�M�N�N�N������4��)<�)<�)>�)>�?�?�� � � � � � r c �J � t j � || j d� � }t j � � } |� |� � |� dd|j � � t |d� � 5 }|� |� � d d d � � n# 1 swxY w Y t dd|� � � � � }| � ||�� � d S # t t j f$ r'}t � d||� � Y d }~d S d }~ww xY w) N�hgrc�paths�default�wr r r z/Could not switch Mercurial repository to %s: %s)�os�path�join�dirname�configparser�RawConfigParser�read�set�secret�open�writer r&