summaryrefslogtreecommitdiff
path: root/mercurial/dagparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'mercurial/dagparser.py')
-rw-r--r--mercurial/dagparser.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/mercurial/dagparser.py b/mercurial/dagparser.py
index 92bd4f0..e02faa5 100644
--- a/mercurial/dagparser.py
+++ b/mercurial/dagparser.py
@@ -268,8 +268,7 @@ def parsedag(desc):
s += c
i += 1
c = nextch()
- raise util.Abort(_('invalid character in dag description: '
- '%s...') % s)
+ raise util.Abort(_("invalid character in dag description: %s...") % s)
def dagtextlines(events,
addspaces=True,
@@ -437,9 +436,7 @@ def dagtext(dag,
>>> dagtext([('n', (0, [-1])), ('a', 'ann'), ('n', (1, [0]))])
'+1 @ann +1'
- >>> dagtext([('n', (0, [-1])),
- ... ('a', 'my annotation'),
- ... ('n', (1, [0]))])
+ >>> dagtext([('n', (0, [-1])), ('a', 'my annotation'), ('n', (1, [0]))])
'+1 @"my annotation" +1'
Commands:
@@ -450,9 +447,7 @@ def dagtext(dag,
>>> dagtext([('n', (0, [-1])), ('c', 'my command'), ('n', (1, [0]))])
'+1 !"my command" +1'
- >>> dagtext([('n', (0, [-1])),
- ... ('C', 'my command line'),
- ... ('n', (1, [0]))])
+ >>> dagtext([('n', (0, [-1])), ('C', 'my command line'), ('n', (1, [0]))])
'+1 !!my command line\\n+1'
Comments: