PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /opt/alt/python39/lib/python3.9/site-packages/pip/_internal/vcs/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib/python3.9/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-39.pyc

a

��Re)�@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dd	�d
d�Z
eee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��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_internal/vcs/bazaar.py�get_base_rev_args szBazaar.get_base_rev_argsN)�dest�url�rev_optionsrcCs>|��}t�d||t|��tdd|��||�}|�|�dS)NzChecking out %s%s to %sr�-q)�
to_display�logger�inforr�to_args�run_command)�selfrrr�rev_display�cmd_argsrrr�	fetch_new$s�zBazaar.fetch_newcCs|jtd|�|d�dS)N�switch��cwd)rr)rrrrrrrr#/sz
Bazaar.switchcCs"tdd|���}|j||d�dS)N�pullrr$)rrr)rrrrr!rrr�update2sz
Bazaar.update)rrcs.t��|�\}}}|�d�r$d|}|||fS)Nzssh://zbzr+)�super�get_url_rev_and_auth�
startswith)�clsrr�	user_pass��	__class__rrr)6s
zBazaar.get_url_rev_and_auth)�locationrcCsz|jdgdd|d�}|��D]T}|��}dD]B}|�|�r,|�|�d}|�|�rbt|�S|Sq,qt�dS)NrFT��show_stdout�stdout_onlyr%)zcheckout of branch: zparent branch: �)r�
splitlines�stripr*�split�_is_local_repositoryrr
)r+r/�urls�line�x�reporrr�get_remote_url>s
�

zBazaar.get_remote_urlcCs |jdgdd|d�}|��dS)N�revnoFTr0���)rr4)r+r/�revisionrrr�get_revisionMs�zBazaar.get_revision)r�namercCsdS)z&Always assume the versions don't matchFr)r+rrArrr�is_commit_id_equalWszBazaar.is_commit_id_equal)�__name__�
__module__�__qualname__rA�dirname�	repo_name�schemes�staticmethod�strrrrrr"r#r'�classmethodrrr	r)r<r@�boolrB�
__classcell__rrr-rrs"
$	r)�logging�typingrrr�pip._internal.utils.miscrr�pip._internal.utils.subprocessr�pip._internal.utils.urlsr� pip._internal.vcs.versioncontrolr	r
rrr
�	getLoggerrCrr�registerrrrr�<module>s
K

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic