File: //kunden/lib/python3/dist-packages/breezy/__pycache__/_annotator_py.cpython-39.pyc
a
�*�^Q5 � @ s` d Z ddlmZ ddlmZ ee� d� ddlmZmZmZ ddl m
Z
mZ G dd � d e�Z
d
S )z8Functionality for doing annotations in the 'optimal' way� )�absolute_import� )�lazy_importz�
import patiencediff
from breezy import (
annotate, # Must be lazy to avoid circular importing
graph as _mod_graph,
)
)�errors�osutils�ui)�range� viewitemsc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd d
�Zdd� Zd
d� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� ZdS ) � Annotatorz)Class that drives performing annotations.c C s. || _ i | _i | _i | _i | _d| _i | _dS )z,Create a new Annotator from a VersionedFile.N)�_vf�_parent_map�_text_cache�_num_needed_children�_annotations_cache�_heads_providerZ_ann_tuple_cache)�selfZvf� r �6/usr/lib/python3/dist-packages/breezy/_annotator_py.py�__init__- s zAnnotator.__init__c C s6 |D ],}|| j v r&| j | d7 <