mercurial/dagparser.py
changeset 25941 a75cda2dfc19
parent 25170 c69f4f7fe01a
child 26587 56b2bcea2529
equal deleted inserted replaced
25940:f4356e5094ba 25941:a75cda2dfc19
     3 # Copyright 2010 Peter Arrenbrecht <peter@arrenbrecht.ch>
     3 # Copyright 2010 Peter Arrenbrecht <peter@arrenbrecht.ch>
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 import re, string
     8 from __future__ import absolute_import
     9 import util
     9 
    10 from i18n import _
    10 import re
       
    11 import string
       
    12 
       
    13 from .i18n import _
       
    14 from . import util
    11 
    15 
    12 def parsedag(desc):
    16 def parsedag(desc):
    13     '''parses a DAG from a concise textual description; generates events
    17     '''parses a DAG from a concise textual description; generates events
    14 
    18 
    15     "+n" is a linear run of n nodes based on the current default parent
    19     "+n" is a linear run of n nodes based on the current default parent