~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-20 22:14:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1877.
  • Revision ID: john@arbash-meinel.com-20060720221438-f91ad8cc36e0b576
Change ignore functions to use sets instead of lists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
            ignores._runtime_ignores = set()
357
357
 
358
358
            self.build_tree_contents([('.bzrignore', 'CVS\n.hg\n')])
359
 
            reference_output = tree._combine_ignore_rules(['CVS', '.hg'])[0]
 
359
            reference_output = tree._combine_ignore_rules(
 
360
                                    set(['CVS', '.hg']))[0]
360
361
            regex_rules = tree._get_ignore_rules_as_regex()[0]
361
362
            self.assertEqual(len(reference_output[1]), regex_rules[0].groups)
362
363
            self.assertEqual(reference_output[1], regex_rules[1])