mercurial/graphmod.py
changeset 25951 69751804f2f5
parent 24180 d8e0c591781c
child 26003 62371c539c89
equal deleted inserted replaced
25950:175873e36d03 25951:69751804f2f5
    15 The node and parent ids are arbitrary integers which identify a node in the
    15 The node and parent ids are arbitrary integers which identify a node in the
    16 context of the graph returned. Type is a constant specifying the node type.
    16 context of the graph returned. Type is a constant specifying the node type.
    17 Data depends on type.
    17 Data depends on type.
    18 """
    18 """
    19 
    19 
    20 from mercurial.node import nullrev
    20 from __future__ import absolute_import
    21 import util
       
    22 
    21 
    23 import heapq
    22 import heapq
       
    23 
       
    24 from .node import nullrev
       
    25 from . import util
    24 
    26 
    25 CHANGESET = 'C'
    27 CHANGESET = 'C'
    26 
    28 
    27 def groupbranchiter(revs, parentsfunc, firstbranch=()):
    29 def groupbranchiter(revs, parentsfunc, firstbranch=()):
    28     """Yield revisions from heads to roots one (topo) branch at a time.
    30     """Yield revisions from heads to roots one (topo) branch at a time.