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/lib/python3.9/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-39.pyc
a

?�f/�@s�ddlmZddlZddlZddlmZddlmZm	Z	ddl
mZddlm
Z
ddlmZddlmZmZe
r�dd	lmZmZdd
lmZddlmZmZe�e�ZGdd
�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�
RevOptionscs�eZdZdZdZdZdZ�fdd�Zedd��Z	d	d
�Z
dd�Zd
d�Zdd�Z
e�fdd��Zedd��Zedd��Zedd��Z�ZS)�Bazaar�bzrz.bzr�branch)rzbzr+httpz	bzr+httpszbzr+sshzbzr+sftpzbzr+ftpzbzr+lpcs4tt|�j|i|��ttdd�r0tj�dg�dS)N�
uses_fragmentZlp)�superr�__init__�getattr�urllib_parser�extend)�self�args�kwargs��	__class__��</usr/lib/python3.9/site-packages/pip/_internal/vcs/bazaar.pyr#szBazaar.__init__cCsd|gS)Nz-rr)�revrrr�get_base_rev_args*szBazaar.get_base_rev_argscCs>tj�|�rt|�|�|�\}}|�td|||����dS)zU
        Export the Bazaar repository at the url to the destination location
        �exportN)�os�path�existsrZget_url_rev_options�run_commandr�to_args)r�location�url�rev_optionsrrrr".s�z
Bazaar.exportcCs>|��}t�d||t|��tdd|��||�}|�|�dS)NzChecking out %s%s to %sr�-q)Z
to_display�logger�inforrr'r&)r�destr)r*Zrev_display�cmd_argsrrr�	fetch_new<s��zBazaar.fetch_newcCs|jtd|�|d�dS)N�switch��cwd)r&r)rr.r)r*rrrr1Jsz
Bazaar.switchcCs"tdd|���}|j||d�dS)NZpullr+r2)rr'r&)rr.r)r*r/rrr�updateNsz
Bazaar.updatecs2tt|��|�\}}}|�d�r(d|}|||fS)Nzssh://zbzr+)rr�get_url_rev_and_auth�
startswith)�clsr)r Z	user_passrrrr5Ss
zBazaar.get_url_rev_and_authcCsr|jdg|d�}|��D]T}|��}dD]B}|�|�r(|�|�d}|�|�r^t|�S|Sq(qdS)Nr-r2)zcheckout of branch: zparent branch: �)r&�
splitlines�stripr6�splitZ_is_local_repositoryr)r7r(Zurls�line�xZreporrr�get_remote_url\s

zBazaar.get_remote_urlcCs|jdg|d�}|��dS)NZrevnor2���)r&r9)r7r(Zrevisionrrr�get_revisionjs�zBazaar.get_revisioncCsdS)z&Always assume the versions don't matchFr)r7r.�namerrr�is_commit_id_equalqszBazaar.is_commit_id_equal)�__name__�
__module__�__qualname__rA�dirnameZ	repo_nameZschemesr�staticmethodr!r"r0r1r4�classmethodr5r>r@rB�
__classcell__rrrrrs&



r)Z
__future__rZloggingr#Zpip._vendor.six.moves.urllibrrZpip._internal.utils.miscrrZpip._internal.utils.subprocessrZpip._internal.utils.typingrZpip._internal.utils.urlsrZ pip._internal.vcs.versioncontrolr	r
�typingrrr
rrZ	getLoggerrCr,r�registerrrrr�<module>s
]