Sort the output text
...also make a pseudo tree for changesets which go straight to the mainline.
This commit is contained in:
10
treeplot
10
treeplot
@@ -204,8 +204,12 @@ class FlowNode:
|
|||||||
|
|
||||||
def BuildFlowTree():
|
def BuildFlowTree():
|
||||||
rootnode = FlowNode(Mainline)
|
rootnode = FlowNode(Mainline)
|
||||||
|
notree = Tree('[No tree]', '')
|
||||||
for centry in CommitTrees.values():
|
for centry in CommitTrees.values():
|
||||||
FillFlowPath(centry.path, rootnode)
|
path = centry.path
|
||||||
|
if not path:
|
||||||
|
path = [ notree ]
|
||||||
|
FillFlowPath(path, rootnode)
|
||||||
return rootnode
|
return rootnode
|
||||||
|
|
||||||
def FillFlowPath(path, node):
|
def FillFlowPath(path, node):
|
||||||
@@ -221,7 +225,9 @@ def FillFlowPath(path, node):
|
|||||||
|
|
||||||
def PrintFlowTree(ftree, indent = ''):
|
def PrintFlowTree(ftree, indent = ''):
|
||||||
print '%s%3d %s' % (indent, ftree.commits, ftree.tree.name)
|
print '%s%3d %s' % (indent, ftree.commits, ftree.tree.name)
|
||||||
for input in ftree.inputs.values():
|
inputs = ftree.inputs.values()
|
||||||
|
inputs.sort(GVSort)
|
||||||
|
for input in inputs:
|
||||||
PrintFlowTree(input, indent + ' ')
|
PrintFlowTree(input, indent + ' ')
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user