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__/wirestore.cpython-310.pyc
o

�]LbK�@s6dZddlmZddlmZmZGdd�dej�ZdS)z6largefile store working over Mercurial's wire protocol�)�absolute_import�)�lfutil�remotestorecs4eZdZ�fdd�Zdd�Zdd�Zdd�Z�ZS)	�	wirestorecsV|�d�}|st�g��|�d�}d|vrt�|��||_tt|��|||���dS)Ns
largefiles�,sserve)	�capabler�storeprotonotcapable�split�remote�superr�__init__�url)�self�ui�repor�cap�
storetypes��	__class__��</usr/lib/python3/dist-packages/hgext/largefiles/wirestore.pyr
s



zwirestore.__init__cCs|j�||�S�N)r�putlfile)r�hash�fdrrr�_putszwirestore._putcCs|j�|�Sr)r�getlfile)rrrrr�_getszwirestore._getc
Csd|j���#}g}|D]}|�||�dd|i�f�q
dd�|D�Wd�S1s+wYdS)z�For each hash, return 0 if it is available, other values if not.
        It is usually 2 if the largefile is missing, but might be 1 the server
        has a corrupted copy.s	statlfilesshacSsi|]	\}}||���qSr)�result)�.0r�frrr�
<dictcomp>4sz#wirestore._stat.<locals>.<dictcomp>N)r�commandexecutor�append�callcommand)r�hashes�e�fsrrrr�_stat s����$�zwirestore._stat)�__name__�
__module__�__qualname__r
rrr)�
__classcell__rrrrrs

rN)�__doc__�
__future__r�rrrrrrr�<module>s