File: //lib/python3/dist-packages/hgext/remotefilelog/__pycache__/basestore.cpython-310.pyc
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&