/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin von Gagern
  • Date: 2010-05-02 20:10:25 UTC
  • mto: This revision was merged to the branch mainline in revision 5203.
  • Revision ID: martin.vgagern@gmx.net-20100502201025-ssuldxi8i98desfh
Added blackbox tests for --directory option.

Added tests for the new --directory (-d) option to these commands: added,
annotate, bind, cat, clean-tree, deleted, export, ignore, ignored,
lookup-revision, ls, modified, nick, re-sign, unbind, unknowns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
                         " and match your ignore pattern:\nb\n"\
155
155
                         "These files will continue to be version controlled"\
156
156
                         " unless you 'bzr remove' them.\n")
 
157
 
 
158
    def test_ignore_directory(self):
 
159
        """Test --directory option"""
 
160
        tree = self.make_branch_and_tree('a')
 
161
        self.run_bzr(['ignore', '--directory=a', 'README'])
 
162
        self.check_file_contents('a/.bzrignore', 'README\n')