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/remotefilelog/__pycache__/ |
Upload File : |
o �]Lb-Y � @ s d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z mZ d dlm Z mZmZmZmZmZ d dlmZmZ ddlmZmZmZ ejZd ad ad ad adZ d d � Z!dd� Z"d d� Z#G dd� de$�Z%dd� Z&dd� Z'dd� Z(G dd� de$�Z)dS )� )�absolute_importN)�_)�bin�hex)�error�pycompat�revlog�sshpeer�util�wireprotov1peer)�hashutil�procutil� )� constants�contentstore� metadatastorec C s4 t t�|��� �}tj�| |d d� |dd � |�S )N� �r r �sha1�digest�os�path�join)�reponame�file�id�pathhash� r �F/usr/lib/python3/dist-packages/hgext/remotefilelog/fileserverclient.py�getcachekey0 s "r c C s t t�| ��� �}tj�||�S �Nr )r r r r r r �getlocalkey5 s r! c s G � fdd�d|j �� � |_ d S )Nc sP e Zd Zejdd� �Zejdd� �Zdd� Z� �fdd�Z� �fd d �Z � Z S )z!peersetup.<locals>.remotefilepeerc s0 | � d�s t�d��� �fdd�}� �d�|fS )N� x_rfl_getfiles5 configured remotefile server does not support getfilec s* | � dd�\}}t|�rt�� �|��|S )N� r )�split�intr �LookupError)�d�code�data�r �noder r �decodeC s z?peersetup.<locals>.remotefilepeer.x_rfl_getfile.<locals>.decode�s files node��capabler �Abort)�selfr r+ r, r r* r � x_rfl_getfile<