https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hgext/convert/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hgext/convert/__pycache__/transport.cpython-310.pyc
o

�]Lb��@s�ddlmZddlZddlZddlZejjZejjZddl	m
Z
ddlmZej
��dadd�ZGdd�de�ZGd	d
�d
e�ZdS)�)�absolute_importN)�getattr)�utilcCs�ddl}|j�|�|j�|�|j�|�|j�|�|j�|�g}t|jdd�}|r@dD]}dD]}||||�}|r=|�	|�q.q*nt
�|jd�rP|�	|j�|��|j�
||�S)z)Create a Subversion authentication baton.rN�'svn_auth_get_platform_specific_provider)s
gnome_keyringskeychainskwalletswindows)ssimplesssl_client_cert_pwsssl_server_trustsget_windows_simple_provider)�
svn.client�client�get_simple_provider�get_username_provider�!get_ssl_client_cert_file_provider�$get_ssl_client_cert_pw_file_provider�"get_ssl_server_trust_file_providerr�core�appendr�safehasattr�get_windows_simple_provider�
svn_auth_open)�pool�svn�	providers�getprovider�name�type�p�r�9/usr/lib/python3/dist-packages/hgext/convert/transport.py�_create_auth_baton's,




��
���rc@seZdZdS)�NotBranchErrorN)�__name__�
__module__�__qualname__rrrrrFsrc@s2eZdZdZd
dd�ZGdd�de�Zdd	�ZdS)�SvnRaTransportz;
    Open an ra connection to a Subversion repository.
    �Nc
Cs�t�|_||_d|_d|_|dust�tjd�sjtj	�
|j�|_	t|j�}||j	_t
dur3tj�d�a
t
|j	_ztj	�|j|j	|j�|_WdStyi}z|j\}}|tjjtjjtjjfvrdt|���d}~ww||_tj�|j|j�d��dS)Nr!sreparent�utf8)�Poolr�svn_url�username�passwordrrr�rar�create_contextr�
auth_baton�
svn_configr
�svn_config_get_config�config�open_ra_session�SubversionException�args�SVN_ERR_RA_ILLEGAL_URL�"SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED�SVN_ERR_BAD_URLr�reparent�encode)�self�urlr'�ab�xxx_todo_changeme�inst�numrrr�__init__Os8
�
���
zSvnRaTransport.__init__c@sHeZdZdd�Zddd�Zddd�Z	ddd	�Zdd
d�Zddd
�ZdS)zSvnRaTransport.ReportercCs|\|_|_dS�N)�	_reporter�_baton)r5�
reporter_datarrrr;psz SvnRaTransport.Reporter.__init__Nc	Cs tj�|j|j|||||�dSr<)rr'�reporter2_invoke_set_pathr=r>)r5�path�revnum�start_empty�
lock_tokenrrrr�set_pathss�z SvnRaTransport.Reporter.set_pathcCstj�|j|j||�dSr<)rr'�reporter2_invoke_delete_pathr=r>)r5rArrrr�delete_path~s�z#SvnRaTransport.Reporter.delete_pathc
Cs"tj�|j|j||||||�dSr<)rr'�reporter2_invoke_link_pathr=r>)r5rAr6�revisionrCrDrrrr�	link_path�s�z!SvnRaTransport.Reporter.link_pathcC�tj�|j|j|�dSr<)rr'�reporter2_invoke_finish_reportr=r>�r5rrrr�
finish_report��
�z%SvnRaTransport.Reporter.finish_reportcCrKr<)rr'�reporter2_invoke_abort_reportr=r>rMrrr�abort_report�rOz$SvnRaTransport.Reporter.abort_reportr<)	rrrr;rErGrJrNrQrrrr�Reporteros


�
rRcOs&|�tjj|j||g|�Ri|���Sr<)rRrr'�	do_update)r5rBrAr/�kwargsrrrrS�s�zSvnRaTransport.do_update)r!N)rrr�__doc__r;�objectrRrSrrrrr Js

 ,r )�
__future__rrr�svn.core�svn.rar
r#r.�mercurial.pycompatr�	mercurialrr'�
initializer*rrrVr rrrr�<module>s


https://t.me/RX1948 - 2025