~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

Remove the default ignores list from bzr, lowering the minimum overhead in bzr add.

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
 
310
310
    def test__get_ignore_rules_as_regex(self):
311
311
        tree = self.make_branch_and_tree('.')
312
 
        # test against the default rules.
313
 
        reference_output = tree._combine_ignore_rules(bzrlib.DEFAULT_IGNORE)[0]
 
312
        self.build_tree_contents([('.bzrignore', 'CVS\n.hg\n')])
 
313
        reference_output = tree._combine_ignore_rules(['CVS', '.hg'])[0]
314
314
        regex_rules = tree._get_ignore_rules_as_regex()[0]
315
315
        self.assertEqual(len(reference_output[1]), regex_rules[0].groups)
316
316
        self.assertEqual(reference_output[1], regex_rules[1])