~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-08-27 02:40:27 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20050827024027-1cb9fbbcc46dda38
Added clean-tree command

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import push
3
3
import annotate
4
4
import shelf
 
5
 
 
6
bzrlib.commands.OPTIONS['ignored'] = None
 
7
 
 
8
class cmd_clean_tree(bzrlib.commands.Command):
 
9
    """Remove unwanted files from working tree.
 
10
    Normally, ignored files are left alone.  The --ignored flag will cause them
 
11
    to be deleted as well.
 
12
    """
 
13
    takes_options = ['ignored']
 
14
    def run(self, ignored=False):
 
15
        import clean_tree
 
16
        clean_tree.clean_tree(ignored=ignored)
 
17
 
 
18
 
5
19
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
6
 
            shelf.cmd_unshelve]
 
20
            shelf.cmd_unshelve, cmd_clean_tree]
7
21
from errors import NoPyBaz
8
22
try:
9
23
    import baz_import