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/largefiles/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

�]Lb�	�@sZdZddlmZddlmZddlmZddlmZddl	m
Z
mZGdd	�d	e
j
�Zd
S)z store class for local filesystem�)�absolute_import)�_)�open)�util�)�	basestore�lfutilcs@eZdZdZ�fdd�Zdd�Zdd�Zdd	�Zd
d�Z�Z	S)�
localstorez�localstore first attempts to grab files out of the store in the remote
    Mercurial repository.  Failing that, it attempts to grab the files from
    the user cache.cs(|��|_tt|��|||j���dS�N)�local�remote�superr	�__init__�url)�self�ui�repor��	__class__��=/usr/lib/python3/dist-packages/hgext/largefiles/localstore.pyrs
zlocalstore.__init__cCs,t�|j|�r	dSt�|t�|j|��dSr
)r�instorer�link�	storepath)r�source�hashrrr�putszlocalstore.putcCs$i}|D]}t�|j|�||<q|Sr
)rrr)r�hashes�retvalrrrr�exists$szlocalstore.existscCsht�|j|�}|st�|||jtd���t|d��}t�t	�
|�|�Wd�S1s-wYdS)Nscan't get file locallysrb)r�findfilerr�
StoreErrorrrr�copyandhashr�
filechunkiter)r�tmpfile�filenamer�path�fdrrr�_getfile*s�$�zlocalstore._getfilec
Cs�d}|D]E\}}}t�|j|�\}}|st�|j|�\}}|s/|j�td�|||f�d}q|rIt�|�}	|	|krI|j�td�|||f�d}q|S)NFs'changeset %s: %s references missing %s
Ts)changeset %s: %s references corrupted %s
)r�
findstorepathrrr�warnr�hashfile)
r�contents�filestocheck�failed�csetr%�expectedhashrr�
actualhashrrr�_verifyfiles3s2���
���zlocalstore._verifyfiles)
�__name__�
__module__�__qualname__�__doc__rrrr(r2�
__classcell__rrrrr	s	r	N)
r6�
__future__r�mercurial.i18nr�mercurial.pycompatr�	mercurialr�rrr	rrrr�<module>s

https://t.me/RX1948 - 2025