~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-06 15:25:11 UTC
  • mfrom: (2319.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070306152511-aa137bb63d6e3a62
(Kent Gibson) Normalize ignore patterns to avoid problems with path seperators.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        self.build_tree(['dir1/', 'dir1/foo',
60
60
                         'dir2/', 'dir2/bar',
61
61
                         'dir3/', 'dir3/baz'])
62
 
        self.runbzr('ignore dir1 dir2/')
63
 
        self.check_file_contents('.bzrignore', 'dir1\ndir2\n')
 
62
        self.runbzr('ignore dir1 dir2/ dir4\\')
 
63
        self.check_file_contents('.bzrignore', 'dir1\ndir2\ndir4\n')
64
64
        self.assertEquals(self.capture('unknowns'), 'dir3\n')
65
65
 
66
66
    def test_ignore_patterns(self):