File: //kunden/lib/python3/dist-packages/breezy/__pycache__/annotate.cpython-39.pyc
a
�*�^�I �
@ s d Z ddlmZ ddlZddlZddlmZ ee� d� ddlmZm Z m
Z
ddlmZ dd l
mZmZ d dd�Zd
d� Zdd� Zd!dd�Zd"dd�Zd#dd�Zdd� ZdZdd� Zdd� Zdd� ZzddlmZ W n< e�y Z z"e
�e� ddl mZ W Y dZ[n
dZ[0 0 dS )$z$File annotate based on weave storage� )�absolute_importN� )�lazy_importz=
import patiencediff
from breezy import (
tsort,
)
)�config�errors�osutils)�_strip_NULL_ghosts)�CURRENT_REVISION�RevisionFc C s� |du r| j }|du rtj}t�� }t| �|��}|rDt||||�S t| dd�s�t t
�} | �� | _z|�
� �d�| _W n tjy� d| _Y n0 d| _tt�� d�| _t�� | _nd} tt||| ��}
t|
||||� dS )a) Annotate path in a tree.
The tree should already be read_locked() when annotate_file_tree is called.
:param tree: The tree to look for revision numbers and history from.
:param path: The path to annotate
:param to_file: The file to output the annotation to.
:param verbose: Show all details rather than truncating to ensure
reasonable text width.
:param full: XXXX Not sure what this does.
:param show_ids: Show revision ids in the annotation output.
:param branch: Branch to use for revision revno lookups
NZget_revision_idF�emailz
local user�?� )�branch�sys�stdoutr Zget_terminal_encoding�listZ
annotate_iter�_show_id_annotations�getattrr
r Zget_parent_ids�
parent_idsZget_config_stack�getZ committerr ZNoWhoami�message�round�time� timestampZlocal_time_offset�timezone�_expand_annotations�_print_annotations)Ztree�path�to_file�verbose�fullZshow_idsr �encoding�annotations�current_rev�
annotation� r% �1/usr/lib/python3/dist-packages/breezy/annotate.py�annotate_file_tree6 s.
�r'