~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-09-01 17:03:54 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050901170354-d4284bd69b877fa5
Used rsvga for nice antialiasing

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        clean_tree.clean_tree(ignored=ignored)
32
32
 
33
33
bzrlib.commands.OPTIONS['no-collapse'] = None
 
34
bzrlib.commands.OPTIONS['no-antialias'] = None
34
35
 
35
36
class cmd_graph_ancestry(bzrlib.commands.Command):
36
37
    """Produce ancestry graphs using dot.
46
47
    the revno.  Other revisions are labeled with essentially random numbers.
47
48
 
48
49
    Revisions that are not in branch storage have dotted outlines.
 
50
 
 
51
    rsvg is used to antialias PNG and JPEG output, but this can be disabled
 
52
    with --no-antialias.
49
53
    """
50
54
    takes_args = ['branch', 'file']
51
 
    takes_options = ['no-collapse']
52
 
    def run(self, branch, file, no_collapse=False):
 
55
    takes_options = ['no-collapse', 'no-antialias']
 
56
    def run(self, branch, file, no_collapse=False, no_antialias=False):
53
57
        import graph
54
 
        graph.write_ancestry_file(branch, file, not no_collapse)
 
58
        graph.write_ancestry_file(branch, file, not no_collapse, 
 
59
                                  not no_antialias)
55
60
 
56
61
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
57
62
            shelf.cmd_unshelve, cmd_clean_tree, conflicts.cmd_conflicts,