File: //usr/lib/python3/dist-packages/mercurial/__pycache__/graphmod.cpython-310.pyc
o
�]LbC � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZ dZdZ
d Zd
Ze
deded
iZdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� ZejG d d!� d!e��Zd"d#� Zd$d%� Zd
S )&a> supports walking the history as DAGs suitable for graphical output
The most basic format we use is that of::
(id, type, data, [parentids])
The node and parent ids are arbitrary integers which identify a node in the
context of the graph returned. Type is a constant specifying the node type.
Data depends on type.
� )�absolute_import� )�nullrev)�attr)�dagop�pycompat�smartset�util� C� P� G� M� |� :Nc # s� � i }�D ]w}| | }�fdd�|� � D �� � fdd�|� � D �}dd� t� �D �}|D ]F}|�|�}|du rRt�tj�sBt����ttt�| �|g��� }||<