~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to graph.py

  • Committer: Aaron Bentley
  • Date: 2005-08-30 19:01:58 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050830190158-132bb432c2a7577a
Added required filename parameter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from dotgraph import Node
 
1
from dotgraph import Node, dot_output, invoke_dot
2
2
from bzrlib.branch import Branch
3
3
import bzrlib.errors
4
4
import re
82
82
        for value in values:
83
83
            node_relations.append((nodes[key], nodes[value]))
84
84
    return node_relations
 
85
 
 
86
def write_ancestry_file(branch, file):
 
87
    b = Branch(branch)
 
88
    relations = graph_ancestry(b)
 
89
    invoke_dot(dot_output(relations), file)
 
90