~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-07-13 13:25:20 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060713132520-2fabfab51affb82f
Update clean-tree docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
class cmd_clean_tree(bzrlib.commands.Command):
30
30
    """Remove unwanted files from working tree.
31
 
    Normally, ignored files are left alone.
 
31
 
 
32
    By default, only unknown files, not ignored files, are deleted.  Versioned
 
33
    files are never deleted.
 
34
 
 
35
    Another class is 'detritus', which includes files emitted by bzr during
 
36
    normal operations and selftests.  (The value of these files decreases with
 
37
    time.)
 
38
 
 
39
    If no options are specified, unknown files are deleted.  Otherwise, option
 
40
    flags are respected, and may be combined.
 
41
 
 
42
    To check what clean-tree will do, use --dry-run.
32
43
    """
33
44
    takes_options = [Option('ignored', help='delete all ignored files.'), 
34
 
                     Option('detritus', help='delete conflict files merge'
35
 
                            ' backups, and failed selftest dirs.  (*.THIS, '
36
 
                            '*.BASE, *.OTHER, *~, *.tmp)'), 
 
45
                     Option('detritus', help='delete conflict files, merge'
 
46
                            ' backups, and failed selftest dirs.'), 
37
47
                     Option('unknown', 
38
48
                            help='delete files unknown to bzr.  (default)'),
39
49
                     Option('dry-run', help='show files to delete instead of'