~abentley/bzrtools/bzrtools-0.12

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-07-13 13:12:22 UTC
  • mfrom: (415.1.1 bzrtools)
  • Revision ID: abentley@panoramicfeedback.com-20060713131222-2bfdeff06434967b
clean-tree --detritus no longer implies --unknown

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
                     Option('detritus', help='delete conflict files merge'
35
35
                            ' backups, and failed selftest dirs.  (*.THIS, '
36
36
                            '*.BASE, *.OTHER, *~, *.tmp)'), 
 
37
                     Option('unknown', 
 
38
                            help='delete files unknown to bzr.  (default)'),
37
39
                     Option('dry-run', help='show files to delete instead of'
38
40
                            ' deleting them.')]
39
 
    def run(self, ignored=False, detritus=False, dry_run=False):
 
41
    def run(self, unknown=False, ignored=False, detritus=False, dry_run=False):
40
42
        from clean_tree import clean_tree
41
 
        clean_tree('.', ignored=ignored, detritus=detritus, dry_run=dry_run)
 
43
        if not (unknown or ignored or detritus):
 
44
            unknown = True
 
45
        clean_tree('.', unknown=unknown, ignored=ignored, detritus=detritus, 
 
46
                   dry_run=dry_run)
42
47
 
43
48
class cmd_graph_ancestry(bzrlib.commands.Command):
44
49
    """Produce ancestry graphs using dot.