File: //kunden/lib/python3/dist-packages/breezy/__pycache__/memorytree.cpython-39.pyc
a
�*�^�/ � @ sx d Z ddlmZ ddlZddlZddlmZmZmZ ddl
mZ ddlm
Z
ddlmZ dd lmZ G d
d� de
�ZdS )z5MemoryTree object.
See MemoryTree for more details.
� )�absolute_importN� )�errors�lock�revision)� Inventory)�MutableInventoryTree)�sha_file)�MemoryTransportc @ s e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
edd� �Zdd� Z
dd� ZdBdd�Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� ZdCd'd(�Zd)d*� Zd+d,� Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� ZdDd:d;�Z d<d=� Z!d>d?� Z"dEd@dA�Z#dS )F�
MemoryTreez�A MemoryTree is a specialisation of MutableTree.
It maintains nearly no state outside of read_lock and write_lock
transactions. (it keeps a reference to the branch, and its last-revision
only).
c C s$ || _ |j| _|| _d| _d| _dS )z4Construct a MemoryTree for branch using revision_id.r N)�branchZ
controldir�_branch_revision_id�_locks�
_lock_mode)�selfr �revision_id� r �3/usr/lib/python3/dist-packages/breezy/memorytree.py�__init__. s
zMemoryTree.__init__c C s dS )NTr �r r r r �supports_symlinks6 s zMemoryTree.supports_symlinksc C s dS �NFr r r r r �supports_tree_reference9 s z"MemoryTree.supports_tree_referencec C s
| j �� S �N)r �get_config_stackr r r r r <