| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.6/site-packages/pip/_internal/vcs/__pycache__/ |
Upload File : |
3 �N�aQ � @ s� d dl Z d dlZd dlZd dlmZmZ d dlmZmZ d dl m Z mZ d dlm Z d dlmZ d dlmZmZmZmZ eje�ZG dd � d e�Zeje� 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 ZdZdZdZd"Zeee e d �d d��Z eeedd �dd�Z eeedd �dd�Zeeedd �dd�Zeeed�dd��Zeeed�dd��Zeeed�dd��Zeeee ed�dd��Zeeee d�dd��Zeeee d�� fd d!��Z� ZS )#� MercurialZhgz.hg�clone�hg+file�hg+http�hg+https�hg+ssh�hg+static-http)�rev�returnc C s | gS )N� )r r r �/usr/lib/python3.6/mercurial.py�get_base_rev_args s zMercurial.get_base_rev_argsN)�dest�url�rev_optionsr c C sP |j � }tjd||t|�� | jtddd||�� | jtdd|j� �|d� d S )NzCloning hg %s%s to %sr z --noupdatez-q�update)�cwd)Z to_display�logger�infor �run_commandr �to_args)�selfr r r Zrev_displayr r r � fetch_new$ s zMercurial.fetch_newc C s� t jj|| jd�}tj� }y>|j|� |jdd|j� t |d��}|j |� W d Q R X W n6 ttjfk r� } zt jd||� W Y d d }~X n X tdd|j� �}| j||d� d S ) NZhgrc�paths�default�wz/Could not switch Mercurial repository to %s: %sr z-q)r )�os�path�join�dirname�configparserZRawConfigParser�read�setZsecret�open�write�OSErrorZNoSectionErrorr Zwarningr r"