##// END OF EJS Templates
graphlog: kill whitespace from earlier refactoring
Dirkjan Ochtman -
r7374:ccec5ae8 default
parent child Browse files
Show More
@@ -16,7 +16,7 b' from mercurial.util import Abort, canonp'
16
16
17 def revisions(repo, start, stop):
17 def revisions(repo, start, stop):
18 """cset DAG generator yielding (rev, node, [parents]) tuples
18 """cset DAG generator yielding (rev, node, [parents]) tuples
19
19
20 This generator function walks through the revision history from revision
20 This generator function walks through the revision history from revision
21 start to revision stop (which must be less than or equal to start).
21 start to revision stop (which must be less than or equal to start).
22 """
22 """
@@ -30,7 +30,7 b' def revisions(repo, start, stop):'
30
30
31 def filerevs(repo, path, start, stop):
31 def filerevs(repo, path, start, stop):
32 """file cset DAG generator yielding (rev, node, [parents]) tuples
32 """file cset DAG generator yielding (rev, node, [parents]) tuples
33
33
34 This generator function walks through the revision history of a single
34 This generator function walks through the revision history of a single
35 file from revision start to revision stop (which must be less than or
35 file from revision start to revision stop (which must be less than or
36 equal to start).
36 equal to start).
@@ -49,13 +49,12 b' def filerevs(repo, path, start, stop):'
49
49
50 def grapher(nodes):
50 def grapher(nodes):
51 """grapher for asciigraph on a list of nodes and their parents
51 """grapher for asciigraph on a list of nodes and their parents
52
52
53 nodes must generate tuples (node, parents, char, lines) where
53 nodes must generate tuples (node, parents, char, lines) where
54
55 - parents must generate the parents of node, in sorted order,
54 - parents must generate the parents of node, in sorted order,
56 and max length 2,
55 and max length 2,
57 - char is the char to print as the node symbol, and
56 - char is the char to print as the node symbol, and
58 - lines are the lines to display next to the node.
57 - lines are the lines to display next to the node.
59 """
58 """
60 seen = []
59 seen = []
61 for node, parents, char, lines in nodes:
60 for node, parents, char, lines in nodes:
General Comments 0
You need to be logged in to leave comments. Login now