/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/workingtree_implementations/test_is_ignored.py

  • Committer: Aaron Bentley
  • Date: 2007-08-20 13:07:12 UTC
  • mfrom: (2732 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2733.
  • Revision ID: abentley@panoramicfeedback.com-20070820130712-buopmg528zcgwyxc
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
        self.assertEqual('*.swp', tree.is_ignored('.foo.py.swp'))
169
169
        self.assertEqual(None, tree.is_ignored('.foo.py.swo'))
170
170
 
171
 
    def test_DEFAULT_IGNORE(self):
172
 
        tree = self.make_branch_and_tree('.')
173
 
        # It used to be possible for plugins to modify DEFAULT_IGNORE
174
 
        # directly, and get their working files to be ignored.
175
 
        # It is still possible to do so, but this is deprecated.
176
 
 
177
 
        # No configured ignores
178
 
        self.build_tree_contents([('.bzrignore', '')])
179
 
        ignores._set_user_ignores([])
180
 
 
181
 
        self.assertEqual(None, tree.is_ignored('foo.pyc'))
182
 
 
183
 
        # Must reset the list so that it reads a new one
184
 
        tree._flush_ignore_list_cache()
185
 
 
186
 
        # use list.append() to get around the deprecation warnings
187
 
        list.append(bzrlib.DEFAULT_IGNORE, '*.py[co]')
188
 
        try:
189
 
            self.assertEqual('*.py[co]', tree.is_ignored('foo.pyc'))
190
 
        finally:
191
 
            list.remove(bzrlib.DEFAULT_IGNORE, '*.py[co]')
192
 
 
193
171
    def test_runtime_ignores(self):
194
172
        tree = self.make_branch_and_tree('.')
195
173
        self.build_tree_contents([('.bzrignore', '')])