ruạṛ
a �+�b� � @ sR d Z ddlmZ ddlZddlmZ ddlmZ ddlm Z G dd � d e j �Z dS ) z� [infinitepush] # Server-side option. Used only if indextype=disk. # Filesystem path to the index store indexpath = PATH � )�absolute_importN)�util)� stringutil� )�indexapic s� e Zd Z� fdd�Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Z� ZS )�fileindexapic sn t t| ��� || _|j�dd�}|s4tj�dd�}tj�|d�| _ tj�|d�| _ tj�|d�| _d | _d S )Ns infinitepushs indexpaths scratchbranchess indexs nodemaps bookmarkmaps nodemetadatamap) �superr �__init__�_repoZuiZconfig�os�path�join�_nodemap�_bookmarkmap�_metadatamap�_lock)�selfZrepo�root�� __class__� �E/usr/lib64/python3.9/site-packages/hgext/infinitepush/fileindexapi.pyr s zfileindexapi.__init__c C s | j �� | _| S �N)r Zwlockr )r r r r � __enter__&