HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/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