File: //usr/lib/python3/dist-packages/mercurial/__pycache__/branchmap.cpython-310.pyc
o
�]LbR~ � @ sV d dl mZ d dlZddlmZmZmZ ddlmZm Z m
Z
mZmZm
Z
ddlmZmZ ejr[d dlmZmZmZmZmZmZmZmZmZ ddlmZ eeeeeeeeeeef
�s[J �ejZejZej Z ej!Z!G d d
� d
e"�Z#dd� Z$d
d� Z%G dd� de"�Z&G dd� de&�Z'dZ(de( Z)de( Z*dZ+ee+�Z,de, Z-dZ.dZ/dZ0G dd� de"�Z1dS )� )�absolute_importN� )�bin�hex�nullrev)�encoding�error�obsolete�pycompat�scmutil�util)�repoviewutil�
stringutil) �Any�Callable�Dict�Iterable�List�Optional�Set�Tuple�Union)� localrepoc @ s@ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dS )�BranchMapCachez8mapping of filtered views of repo with their branchcachec C s
i | _ d S �N)�_per_filter��self� r �5/usr/lib/python3/dist-packages/mercurial/branchmap.py�__init__E �
zBranchMapCache.__init__c C s | � |� | j|j S r )�updatecacher �
filtername�r �repor r r �__getitem__H s
zBranchMapCache.__getitem__c s� |j }|j}| j�|�� � du s� �|�st�|�� g }� du rLt�|�}|durH|�|�}| | � � � |j j
|j
}|�� fdd�|D �� nt|�� |�|j� j
d d�� |r`� �||� � �|�siJ |��� | j|j<