Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
self
/
root
/
opt
/
alt
/
python39
/
lib
/
python3.9
/
site-packages
/
pip
/
_internal
/
vcs
/
__pycache__
[ HOME ]
Exec
Submit
File Name : mercurial.cpython-39.pyc
a ��ReQ � @ s� d dl Z d dlZd dlZd dlmZmZ d dlmZmZ d dl m Z mZ d dlm Z d dlmZ d dlmZmZmZmZ e�e�ZG dd � d e�Ze�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 s� e Zd ZdZdZdZdZeee e d�dd��Z eeedd �d d�Z eeedd �dd �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 | gS )N� )r r r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/vcs/mercurial.py�get_base_rev_args s zMercurial.get_base_rev_argsN)�dest�url�rev_optionsr c C sP |� � }t�d||t|�� | �tddd||�� | jtdd|�� �|d� 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_displayr r r � fetch_new$ s ��zMercurial.fetch_newc C s� t j�|| jd�}t�� }zR|�|� |�dd|j� t |d��}|� |� W d � n1 s`0 Y W n8 ttjfy� } zt �d||� W Y d }~n(d }~0 0 tdd|�� �}| j||d� d S ) N�hgrc�paths�default�wz/Could not switch Mercurial repository to %s: %sr r r )�os�path�join�dirname�configparser�RawConfigParser�read�set�secret�open�write�OSError�NoSectionErrorr �warningr r! r ) r"