File: //usr/lib/python2.7/dist-packages/mercurial/graphmod.pyc
ó
ŰXc @@ sÖ d Z d d l m Z d d l m Z d d l m Z m Z d Z d Z d Z
d Z i d
e 6d e
6d e 6Z
d Z d
Z d Z d Z d Z d Z d Z d Z d Z d Z d Z d S( s> 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.
i ( t absolute_importi ( t nullrev( t revsett utilt Ct Pt Gt Mt |t :c
#@ s¨ s
d Si } x D]} | | } t f d | j D g | j D]6 } | j t k rV | j k rV | j ^ qV } g t D] } t | f ^ q } xĎ | D]Ç } | j | } | d k r2t t j
st j
n t t t j | | g } | | <n | s[| j t
| f j | qž | j f d | D j | qž W| j t | | f Vq Wd S( sÍ cset DAG generator yielding (id, CHANGESET, ctx, [parentinfo]) tuples
This generator function walks through revisions (which should be ordered
from bigger to lower). It returns a tuple for each node.
Each parentinfo entry is a tuple with (edgetype, parentid), where edgetype
is one of PARENT, GRANDPARENT or MISSINGPARENT. The node and parent ids
are arbitrary integers which identify a node in the context of the graph
returned.
Nc 3@ s- | ]# } | j k r | j Vq d S( N( t rev( t .0t p( t revs( s6 /usr/lib/python2.7/dist-packages/mercurial/graphmod.pys <genexpr><