File: //usr/lib/python3/dist-packages/mercurial/__pycache__/dirstatemap.cpython-310.pyc
o
�]Lb_ � @ s� d dl mZ d dlZddlmZ ddlmZmZmZm Z m
Z
mZ ddlm
ZmZ e�d�Ze�d�ZejZedu r=ejZnejZd ZG d
d� de�ZG dd
� d
e�Zedur`G dd
� d
e�ZdS dS )� )�absolute_importN� )�_)�error�pathutil�policy�pycompat�txnutil�util)�docket�v2�parsers�dirstatei���c @ s� e Zd ZdZdZdZdd� Zdd� Zd2dd�Zd d
� Z dd� Z
d
d� Zdd� Zd2dd�Z
d3dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Z $ $ d4d%d&�Zd'd(� Zd5d*d+�Zed,d-� �Zd.d/� Zd0d1� ZdS )6�_dirstatemapcommonz�
Methods that are identical for both implementations of the dirstatemap
class, with and without Rust extensions enabled.
Nc C sF || _ || _|| _|| _|| _d| _d| _d | _d| _d | _ d | _
d S )Ns dirstate� F)�_use_dirstate_v2�_nodeconstants�_ui�_opener�_root� _filename�_nodelen�_parents�
_dirtyparents�_docket�_pendingmode)�self�ui�opener�root�
nodeconstants�use_dirstate_v2� r"