~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: abentley
  • Date: 2005-10-17 01:50:19 UTC
  • Revision ID: abentley@lappy-20051017015019-769ba41b6b011718
Fixed symlink traversal in clean-tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    """
25
25
    takes_options = ['ignored', 'detrius', 'dry-run']
26
26
    def run(self, ignored=False, detrius=False, dry_run=False):
27
 
        import clean_tree
28
 
        from bzrlib.branch import Branch
29
 
        br = Branch.open_containing('.')
30
 
        tree = br.working_tree()
31
 
        deletables = clean_tree.iter_deletables(tree, ignored=ignored, 
32
 
                                                detrius=detrius)
33
 
        clean_tree.clean_tree(deletables, dry_run=dry_run)
 
27
        from clean_tree import clean_tree
 
28
        clean_tree('.', ignored=ignored, detrius=detrius, dry_run=dry_run)
34
29
 
35
30
bzrlib.commands.OPTIONS['no-collapse'] = None
36
31
bzrlib.commands.OPTIONS['no-antialias'] = None
131
126
 
132
127
def test_suite():
133
128
    from doctest import DocTestSuite
134
 
    return DocTestSuite(bzrtools)
 
129
    from unittest import TestSuite
 
130
    import clean_tree
 
131
    result = TestSuite()
 
132
    result.addTest(DocTestSuite(bzrtools))
 
133
    result.addTest(clean_tree.test_suite())
 
134
    return result