~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_clean_tree.py

(garyvdm for gagern) Add --directory (-d) option to a number of
        commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2009 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
62
62
        self.failIfExists('name')
63
63
        self.failIfExists('name~')
64
64
        self.failIfExists('name.pyc')
 
65
 
 
66
    def test_clean_tree_directory(self):
 
67
        """Test --directory option"""
 
68
        tree = self.make_branch_and_tree('a')
 
69
        self.build_tree(['a/added', 'a/unknown', 'a/ignored'])
 
70
        tree.add('added')
 
71
        self.run_bzr('clean-tree -d a --unknown --ignored --force')
 
72
        self.failIfExists('a/unknown')
 
73
        self.failIfExists('a/ignored')
 
74
        self.failUnlessExists('a/added')