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�? � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z mZ d dlm Z d dlmZmZmZ d dlmZ dd lmZmZ G d d� de�ZG dd � d e�ZdS )� )�absolute_importN)�_)�bin�hex)�open)�error�pycompat�util)�hashutil� )� constants�shallowutilc @ s� e Zd Zd#dd�Zdd� Zd$dd�Zd d � Zdd� Zd d� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd � Zd!d"� ZdS )%� basestoreFc C s� || _ |j| _|| _|| _|| _tjst�� nd| _ | j� dd�| _| j� ddd�| _| jdvr3d| _| jdkr;d| _|rFt �| j|� dS dS ) a� Creates a remotefilelog store object for the given repo name. `path` - The file path where this store keeps its data `reponame` - The name of the repo. This is used to partition data from many repos. `shared` - True if this store is a shared cache of data from the central server, for many repos on this machine. False means this store is for the local data for one repo. N� remotefilelogs validatecachelogs validatecache� on)r � strict� offr F)�repo�ui�_path� _reponame�_sharedr � iswindows�os�getuid�_uid�config�_validatecachelog�_validatecacher �mkstickygroupdir)�selfr �path�reponame�shared� r$ �?/usr/lib/python3/dist-packages/hgext/remotefilelog/basestore.py�__init__ s&