/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_workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-19 21:44:16 UTC
  • mfrom: (1836.1.26 ignores)
  • Revision ID: pqm@pqm.ubuntu.com-20060719214416-9fab2f627df9f1aa
(jam) allow global user ignores, and include a small set by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
import os
20
20
import sys
21
21
 
 
22
from bzrlib import ignores
22
23
import bzrlib
23
24
from bzrlib import branch, bzrdir, errors, osutils, urlutils, workingtree
24
 
from bzrlib.errors import (NotBranchError, NotVersionedError, 
 
25
from bzrlib.errors import (NotBranchError, NotVersionedError,
25
26
                           UnsupportedOperation, PathsNotVersionedError)
26
27
from bzrlib.osutils import pathjoin, getcwd, has_symlinks
27
28
from bzrlib.tests import TestSkipped
48
49
 
49
50
    def test_list_files_sorted(self):
50
51
        tree = self.make_branch_and_tree('.')
51
 
        self.build_tree(['dir/', 'file', 'dir/file', 'dir/b', 'dir/subdir/', 'a', 'dir/subfile',
52
 
                'zz_dir/', 'zz_dir/subfile'])
53
 
        files = [(path, kind) for (path, versioned, kind, file_id, entry) in tree.list_files()]
 
52
        ignores.set_user_ignores(['./.bazaar'])
 
53
        self.build_tree(['dir/', 'file', 'dir/file', 'dir/b',
 
54
                         'dir/subdir/', 'a', 'dir/subfile',
 
55
                         'zz_dir/', 'zz_dir/subfile'])
 
56
        files = [(path, kind) for (path, v, kind, file_id, entry)
 
57
                               in tree.list_files()]
54
58
        self.assertEqual([
 
59
            ('.bazaar', 'directory'),
55
60
            ('a', 'file'),
56
61
            ('dir', 'directory'),
57
62
            ('file', 'file'),
59
64
            ], files)
60
65
 
61
66
        tree.add(['dir', 'zz_dir'])
62
 
        files = [(path, kind) for (path, versioned, kind, file_id, entry) in tree.list_files()]
 
67
        files = [(path, kind) for (path, v, kind, file_id, entry)
 
68
                               in tree.list_files()]
63
69
        self.assertEqual([
 
70
            ('.bazaar', 'directory'),
64
71
            ('a', 'file'),
65
72
            ('dir', 'directory'),
66
73
            ('dir/b', 'file'),