HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-37.pyc
B

L��g�
�@s�ddlZddlmZmZmZddlmZmZddlm	Z	ddl
mZddlm
Z
mZmZmZmZe�e�ZGdd�de�Ze�e�dS)	�N)�List�Optional�Tuple)�
HiddenText�display_path)�make_command)�path_to_url)�AuthInfo�RemoteNotFoundError�
RevOptions�VersionControl�vcscs�eZdZdZdZdZdZeee	ed�dd��Z
eeee
dd	�d
d�Zeeedd�d
d�Zeeedd�dd�Zeeeeeeefd��fdd��Zeeed�dd��Zeeed�dd��Zeeeeed�dd��Z�ZS)�Bazaar�bzrz.bzr�branch)zbzr+httpz	bzr+httpszbzr+sshzbzr+sftpzbzr+ftpzbzr+lpzbzr+file)�rev�returncCsd|gS)Nz-r�)rrr�</tmp/pip-unpacked-wheel-hv55ucu3/pip/_internal/vcs/bazaar.py�get_base_rev_args szBazaar.get_base_rev_argsN)�dest�url�rev_options�	verbosityrcCsj|��}t�d||t|��|dkr*d}n|dkr8d}ndd|��}tdd	||��||�}|�|�dS)
NzChecking out %s%s to %srz--quiet���-�v�checkoutz
--lightweight)�
to_display�logger�inforr�to_args�run_command)�selfrrrr�rev_display�flag�cmd_argsrrr�	fetch_new$s
zBazaar.fetch_new)rrrrcCs|jtd|�|d�dS)N�switch)�cwd)r#r)r$rrrrrrr)9sz
Bazaar.switchcCs\|jtd�dd|d�}|�d�r:tdd|�}|j||d�td	d|���}|j||d�dS)
Nr!FT)�show_stdout�stdout_onlyr*zStandalone �bindz-q)r*�update)r#r�
startswithr")r$rrr�outputr'rrrr.<s
z
Bazaar.update)rrcs.t��|�\}}}|�d�r$d|}|||fS)Nzssh://zbzr+)�super�get_url_rev_and_authr/)�clsrr�	user_pass)�	__class__rrr2Is
zBazaar.get_url_rev_and_auth)�locationrcCsr|jdgdd|d�}xT|��D]H}|��}x:dD]2}|�|�r0|�|�d}|�|�r^t|�S|Sq0WqWt�dS)Nr!FT)r+r,r*)zcheckout of branch: zparent branch: r)r#�
splitlines�stripr/�split�_is_local_repositoryrr
)r3r6�urls�line�x�reporrr�get_remote_urlQs


zBazaar.get_remote_urlcCs |jdgdd|d�}|��dS)N�revnoFT)r+r,r*���)r#r7)r3r6�revisionrrr�get_revision`szBazaar.get_revision)r�namercCsdS)z&Always assume the versions don't matchFr)r3rrDrrr�is_commit_id_equaljszBazaar.is_commit_id_equal)�__name__�
__module__�__qualname__rD�dirname�	repo_name�schemes�staticmethod�strrrrr�intr(r)r.�classmethodrrr	r2r?rC�boolrE�
__classcell__rr)r5rrs$	
$	r)�logging�typingrrr�pip._internal.utils.miscrr�pip._internal.utils.subprocessr�pip._internal.utils.urlsr� pip._internal.vcs.versioncontrolr	r
rrr
�	getLoggerrFr r�registerrrrr�<module>s
^