comparison mercurial/dagparser.py @ 11885:08cd25ef8a38 stable

dagparser: transplant part of 4e804302d30c
author Martin Geisler <mg@lazybytes.net>
date Sun, 15 Aug 2010 17:49:59 +0200
parents 32a9744acf1e
children 26d86a6cf2af
comparison
equal deleted inserted replaced
11884:932448701e7d 11885:08cd25ef8a38
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 import re, string
9 import util 9 import util
10 from i18n import _
10 11
11 def parsedag(desc): 12 def parsedag(desc):
12 '''parses a DAG from a concise textual description; generates events 13 '''parses a DAG from a concise textual description; generates events
13 14
14 "+n" is a linear run of n nodes based on the current default parent 15 "+n" is a linear run of n nodes based on the current default parent