HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_internal/vcs/__pycache__/bazaar.cpython-39.pyc
a

[��f)�@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)�BazaarZbzrz.bzr�branch)zbzr+httpz	bzr+httpszbzr+sshzbzr+sftpzbzr+ftpzbzr+lpzbzr+file)�rev�returncCsd|gS)Nz-r�)rrr�</usr/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)Z
to_display�logger�inforr�to_args�run_command)�selfrrrZrev_display�cmd_argsrrr�	fetch_new$s�zBazaar.fetch_newcCs|jtd|�|d�dS)N�switch��cwd)rr)rrrrrrrr /sz
Bazaar.switchcCs"tdd|���}|j||d�dS)NZpullrr!)rrr)rrrrrrrr�update2sz
Bazaar.update)rrcs.t��|�\}}}|�d�r$d|}|||fS)Nzssh://zbzr+)�super�get_url_rev_and_auth�
startswith)�clsrrZ	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�Zshow_stdoutZstdout_onlyr")zcheckout of branch: zparent branch: �)r�
splitlines�stripr&�splitZ_is_local_repositoryrr
)r'r*Zurls�line�xZreporrr�get_remote_url>s
�

zBazaar.get_remote_urlcCs |jdgdd|d�}|��dS)NZrevnoFTr+���)rr-)r'r*Zrevisionrrr�get_revisionMs�zBazaar.get_revision)r�namercCsdS)z&Always assume the versions don't matchFr)r'rr5rrr�is_commit_id_equalWszBazaar.is_commit_id_equal)�__name__�
__module__�__qualname__r5�dirnameZ	repo_nameZschemes�staticmethod�strrrrrrr r#�classmethodrrr	r%r2r4�boolr6�
__classcell__rrr(rrs"
$	r)Zlogging�typingrrrZpip._internal.utils.miscrrZpip._internal.utils.subprocessrZpip._internal.utils.urlsrZ pip._internal.vcs.versioncontrolr	r
rrr
Z	getLoggerr7rr�registerrrrr�<module>s
K