~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-02-01 04:42:39 UTC
  • mfrom: (310 bzrtools)
  • mto: (147.4.30 trunk)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: aaron.bentley@utoronto.ca-20060201044239-7c17ea8d0a18eedb
Merge from bzrtools mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        from clean_tree import clean_tree
33
33
        clean_tree('.', ignored=ignored, detritus=detritus, dry_run=dry_run)
34
34
 
35
 
Option.OPTIONS['no-collapse'] = Option('no-collapse')
36
 
Option.OPTIONS['no-antialias'] = Option('no-antialias')
37
 
Option.OPTIONS['cluster'] = Option('cluster')
38
35
Option.OPTIONS['merge-branch'] = Option('merge-branch',type=str)
39
36
 
40
37
class cmd_graph_ancestry(bzrlib.commands.Command):
41
38
    """Produce ancestry graphs using dot.
42
39
    
43
40
    Output format is detected according to file extension.  Some of the more
44
 
    common output formats are png, gif, svg, ps.  An extension of '.dot' will
45
 
    cause a dot graph file to be produced.
 
41
    common output formats are html, png, gif, svg, ps.  An extension of '.dot'
 
42
    will cause a dot graph file to be produced.  HTML output has mouseovers
 
43
    that show the commit message.
46
44
 
47
45
    Branches are labeled r?, where ? is the revno.  If they have no revno,
48
46
    with the last 5 characters of their revision identifier are used instead.
 
47
 
 
48
    The value starting with d is "(maximum) distance from the null revision".
49
49
    
50
50
    If --merge-branch is specified, the two branches are compared and a merge
51
51
    base is selected.
56
56
    red      OTHER history
57
57
    orange   COMMON history
58
58
    blue     COMMON non-history ancestor
59
 
    dotted   Missing from branch storage
 
59
    green    Merge base (COMMON ancestor farthest from the null revision)
 
60
    dotted   Ghost revision (missing from branch storage)
60
61
 
61
 
    Ancestry is usually collapsed by removing revisions with a single parent
 
62
    Ancestry is usually collapsed by skipping revisions with a single parent
62
63
    and descendant.  The number of skipped revisions is shown on the arrow.
63
64
    This feature can be disabled with --no-collapse.
64
65
 
69
70
    be disabled with --no-antialias.
70
71
    """
71
72
    takes_args = ['branch', 'file']
72
 
    takes_options = ['no-collapse', 'no-antialias', 'merge-branch', 'cluster']
 
73
    takes_options = [Option('no-collapse', help="Do not skip simple nodes"), 
 
74
                     Option('no-antialias',
 
75
                     help="Do not use rsvg to produce antialiased output"), 
 
76
                     Option('merge-branch', type=str, 
 
77
                     help="Use this branch to calcuate a merge base"), 
 
78
                     Option('cluster', help="Use clustered output.")]
73
79
    def run(self, branch, file, no_collapse=False, no_antialias=False,
74
80
        merge_branch=None, cluster=False):
75
81
        import graph