403Webshell
Server IP : 108.167.183.253  /  Your IP : 216.73.216.79
Web Server : Apache
System : Linux gator4209.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : raghunath ( 2558)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib64/python3.9/site-packages/hgext/largefiles/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/python3.9/site-packages/hgext/largefiles/__pycache__/remotestore.cpython-39.pyc
a

�+�b{�@svdZddlmZddlmZddlmZmZmZddl	m
Z
mZddlm
Z
mZmZejZejZGdd	�d	e
j
�Zd
S)z4remote largefile store; the base class for wirestore�)�absolute_import)�_)�error�pycompat�util)�
stringutil�urlutil�)�	basestore�lfutil�
localstorecsheZdZdZ�fdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
�ZS)�remotestorez)a largefile store accessed over a networkcs<tt|��|||�d|_|dur8t�|j|j|j�|_dS)N)�superr
�__init__�_lstorer�ui�repo)�selfrr�url��	__class__��B/usr/lib64/python3.9/site-packages/hgext/largefiles/remotestore.pyr$szremotestore.__init__cCsN|�||�r*t�td�|t�|j�f��|j�td�|t�|j�f�dS)Ns0remotestore: could not put %s to remote store %ss'remotestore: put %s to remote store %s
)	�sendfiler�Abortrr�hidepasswordrr�debug)r�source�hashrrr�put*s����zremotestore.putcCsdd�t�|�|��D�S)NcSsi|]\}}||dk�qS)rr)�.0�h�srrr�
<dictcomp>6s�z&remotestore.exists.<locals>.<dictcomp>)rZ	iteritems�_stat�r�hashesrrr�exists5s
��zremotestore.existsc
Cs�|j�d||f�z@t�|j|��}|�||�Wd�WS1sH0YWn@ty�}z(t�td�|t	�
|�f��WYd}~n
d}~00dS)Nsremotestore: sendfile(%s, %s)
s'remotestore: could not open file %s: %s)rrrZhttpsendfile�_put�IOErrorrrrr�forcebytestr)r�filenamer�fd�errrr=s0��zremotestore.sendfilecCs�z|�|�}Wn�tjyL}z$t�|||jt�|���WYd}~n�d}~0tjy�}z(t	�
dt�|j�|j
f��WYd}~nDd}~0ty�}z$t�|||jt�|���WYd}~n
d}~00t�||�S)Ns%s: %s)�_get�urlerrZ	httperrorr
Z
StoreErrorrrr*Zurlerrorrrrr�reasonr)rZcopyandhash)rZtmpfiler+r�chunksr-rrr�_getfileHs���zremotestore._getfilecs"|j�|���fdd�|D�}|S)Ncsg|]}�|r|�qSrr)r r�Zexistslocallymaprr�
<listcomp>a�z7remotestore._hashesavailablelocally.<locals>.<listcomp>)rr')rr&�localhashesrr3r�_hashesavailablelocally_sz#remotestore._hashesavailablelocallycs�d}dd�|D�}|�|��|��fdd�|D��}|D]�\}}}|�vrn|||f}	|j�||	g�}
|
r�d}q8||}|r8|dkr�|j�td�||f�d}q8|dkr�|j�td	�||f�d}q8td
|��q8|S)NFcSsg|]\}}}|�qSrr)r �csetr+�expectedhashrrrr4fsz,remotestore._verifyfiles.<locals>.<listcomp>csg|]}|�vr|�qSrr)r r9�r6rrr4ks�Tr	s"changeset %s: %s: contents differ
�schangeset %s: %s missing
s6verify failed: unexpected response from statlfile (%r))r7r$r�_verifyfilesr�warnr�RuntimeError)r�contentsZfilestocheckZfailedZexpectedhashesZstatsr8r+r9ZfiletocheckZverifyresult�statrr:rr<dsL�

��
������zremotestore._verifyfilescCstd��dS)z1Put file with the given hash in the remote store.�abstract methodN��NotImplementedError)rrr,rrrr(�szremotestore._putcCstd��dS)z/Get a iterator for content with the given hash.rANrB)rrrrrr.�szremotestore._getcCstd��dS)z�Get information about availability of files specified by
        hashes in the remote store. Return dictionary mapping hashes
        to return code where 0 means that file is available, other
        values if not.rANrBr%rrrr$�szremotestore._stat)�__name__�
__module__�__qualname__�__doc__rrr'rr2r7r<r(r.r$�
__classcell__rrrrr
!s+r
N)rGZ
__future__rZmercurial.i18nrZ	mercurialrrrZmercurial.utilsrr�r
rrr/Zurlreqr
rrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit