관리-도구
편집 파일: bazaar.cpython-38.pyc
U ��.eu � @ s� d dl mZ d dlZd dlZd dlmZ d dlmZm Z d dl mZ d dlm Z d dlmZ d dlmZmZ e r�d d lmZmZ d d lmZ d dlmZmZ e�e�ZG dd � d e�Ze�e� dS )� )�absolute_importN)�parse)�display_path�rmtree)�make_command)�MYPY_CHECK_RUNNING)�path_to_url)�VersionControl�vcs)�Optional�Tuple)� HiddenText)�AuthInfo� RevOptionsc s� e Zd ZdZdZdZdZ� fdd�Zedd� �Z d d � Z dd� Zd d� Zdd� Z e� fdd��Zedd� �Zedd� �Zedd� �Z� ZS )�Bazaar�bzrz.bzr�branch)r zbzr+httpz bzr+httpszbzr+sshzbzr+sftpzbzr+ftpzbzr+lpc s0 t t| �j||� ttdd �r,tj�dg� d S )N� uses_fragmentZlp)�superr �__init__�getattr�urllib_parser �extend)�self�args�kwargs�� __class__� �</usr/lib/python3.8/site-packages/pip/_internal/vcs/bazaar.pyr # s zBazaar.__init__c C s d| gS )Nz-rr )�revr r r �get_base_rev_args* s zBazaar.get_base_rev_argsc C sB t j�|�rt|� | �|�\}}| jtd|||�� �dd� dS )zU Export the Bazaar repository at the url to the destination location �exportF)�show_stdoutN)�os�path�existsr Zget_url_rev_options�run_commandr �to_args)r �location�url�rev_optionsr r r r"