~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2007-06-12 22:09:44 UTC
  • mfrom: (540.1.2 bzrtools-0.17)
  • Revision ID: aaron.bentley@utoronto.ca-20070612220944-5zw4hlzp1ctq6mkl
Merge fixes from 0.17

Show diffs side-by-side

added added

removed removed

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