File: //usr/lib/python3/dist-packages/hgext/infinitepush/__pycache__/fileindexapi.cpython-310.pyc
o
�]Lb�
� @ 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�}|stj�dd�}tj�|d�| _ tj�|d�| _
tj�|d�| _d | _d S )Ns infinitepushs indexpaths scratchbranchess indexs nodemaps bookmarkmaps nodemetadatamap)
�superr �__init__�_repo�ui�config�os�path�join�_nodemap�_bookmarkmap�_metadatamap�_lock)�self�repo�root�� __class__� �A/usr/lib/python3/dist-packages/hgext/infinitepush/fileindexapi.pyr s
zfileindexapi.__init__c C s | j �� | _| S �N)r
�wlockr )r r r r � __enter__&