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 : |
o �]LbK � @ s6 d Z ddlmZ ddlmZmZ G dd� dej�ZdS )z6largefile store working over Mercurial's wire protocol� )�absolute_import� )�lfutil�remotestorec s4 e Zd Z� fdd�Zdd� Zdd� Zdd� Z� ZS ) � wirestorec sV |� d�}|st�g ��|�d�}d|vrt�|��|| _tt| ��|||�� � d S )Ns largefiles� ,s serve) �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__c C s | j �||�S �N)r �putlfile)r �hash�fdr r r �_put s zwirestore._putc C s | j �|�S r )r �getlfile)r r r r r �_get s zwirestore._getc C sd | j �� �#}g }|D ]}|�||�dd|i�f� q dd� |D �W d � S 1 s+w Y dS )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 statlfiles shac S s i | ] \}}||� � �qS r )�result)�.0r �fr r r � <dictcomp>4 s z#wirestore._stat.<locals>.<dictcomp>N)r �commandexecutor�append�callcommand)r �hashes�e�fsr r r r �_stat s ����$�zwirestore._stat)�__name__� __module__�__qualname__r r r r) � __classcell__r r r r r s r N)�__doc__� __future__r � r r r r r r r �<module> s