~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.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:
28
28
        clean_tree.clean_tree(ignored=ignored)
29
29
 
30
30
class cmd_graph_ancestry(bzrlib.commands.Command):
31
 
    takes_args = ['branch']
32
 
    def run(self, branch):
 
31
    takes_args = ['branch', 'file']
 
32
    def run(self, branch, file):
33
33
        import graph
34
 
        from dotgraph import dot_output, invoke_dot
35
 
        from bzrlib.branch import Branch
36
 
        b = Branch(branch)
37
 
        relations = graph.graph_ancestry(b)
38
 
        invoke_dot(dot_output(relations), 'graphtest.svg')
 
34
        graph.write_ancestry_file(branch, file)
39
35
 
40
36
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
41
37
            shelf.cmd_unshelve, cmd_clean_tree, conflicts.cmd_conflicts,