| Server IP : 108.167.183.253 / Your IP : 216.73.216.60 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 : |
a
�+�bK � @ 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|vr4t�|��|| _tt| ��|||�� � d S )Ns
largefiles� ,s serve) Zcapabler Zstoreprotonotcapable�split�remote�superr �__init__�url)�selfZuiZrepor ZcapZ
storetypes�� __class__� �@/usr/lib64/python3.9/site-packages/hgext/largefiles/wirestore.pyr s
zwirestore.__init__c C s | j �||�S �N)r Zputlfile)r
�hash�fdr r r �_put s zwirestore._putc C s | j �|�S r )r Zgetlfile)r
r r r r �_get s zwirestore._getc
C sd | j �� �F}g }|D ]}|�||�dd|i�f� qdd� |D �W d � S 1 sV0 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 � z#wirestore._stat.<locals>.<dictcomp>N)r Zcommandexecutor�appendZcallcommand)r
Zhashes�eZfsr r r r �_stat s ����zwirestore._stat)�__name__�
__module__�__qualname__r r r r �
__classcell__r r r r r s
r N)�__doc__Z
__future__r � r r r r r r r �<module> s