~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Charlie Shepherd
  • Date: 2007-04-04 18:12:00 UTC
  • mto: This revision was merged to the branch mainline in revision 538.
  • Revision ID: masterdriverz@gentoo.org-20070404181200-wqiwytdor9srux2v
Remove all trailing whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import bzrlib
24
24
 
25
25
 
26
 
__version__ = '0.18.0'
 
26
__version__ = '0.16.0'
27
27
 
28
28
 
29
29
version_info = tuple(int(n) for n in __version__.split('.'))
39
39
    """
40
40
    desired_plus = (desired[0], desired[1]+1)
41
41
    bzrlib_version = bzrlib.version_info[:2]
42
 
    if bzrlib_version == desired or (bzrlib_version == desired_plus and
43
 
                                     bzrlib.version_info[3] == 'dev'):
 
42
    if bzrlib_version == desired:
44
43
        return
45
44
    try:
46
45
        from bzrlib.trace import warning
116
115
        from clean_tree import clean_tree
117
116
        if not (unknown or ignored or detritus):
118
117
            unknown = True
119
 
        clean_tree('.', unknown=unknown, ignored=ignored, detritus=detritus, 
120
 
                   dry_run=dry_run)
 
118
        clean_tree('.', out=self.outf, unknown=unknown, ignored=ignored,
 
119
                   detritus=detritus, dry_run=dry_run)
121
120
 
122
121
 
123
122
class cmd_graph_ancestry(bzrlib.commands.Command):
124
123
    """Produce ancestry graphs using dot.
125
 
    
 
124
 
126
125
    Output format is detected according to file extension.  Some of the more
127
126
    common output formats are html, png, gif, svg, ps.  An extension of '.dot'
128
127
    will cause a dot graph file to be produced.  HTML output has mouseovers
339
338
        cmd_obj = cmd_class()
340
339
        indent = 2 * ' '
341
340
 
342
 
        usage = cmd_obj._usage()
 
341
        usage = help.command_usage(cmd_obj)
343
342
        usage = usage.replace('bzr shelf-', '')
344
343
        text.append('%s%s\n' % (indent, usage))
345
344