~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_tree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-23 17:00:36 UTC
  • mfrom: (4032.1.4 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090223170036-3q1v68ewdt8i0to5
(Marius Kruger) Remove all trailing whitespace and add tests to
        enforce this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        self.assertIsInstance(optimiser, InterTree)
43
43
 
44
44
    def test_working_tree_revision_tree(self):
45
 
        # we should have an InterTree available for WorkingTree to 
 
45
        # we should have an InterTree available for WorkingTree to
46
46
        # RevisionTree.
47
47
        tree = self.make_branch_and_tree('.')
48
48
        rev_id = tree.commit('first post')
53
53
        self.assertIsInstance(optimiser, InterTree)
54
54
 
55
55
    def test_working_tree_working_tree(self):
56
 
        # we should have an InterTree available for WorkingTree to 
 
56
        # we should have an InterTree available for WorkingTree to
57
57
        # WorkingTree.
58
58
        tree = self.make_branch_and_tree('1')
59
59
        tree2 = self.make_branch_and_tree('2')
72
72
        want_unversioned=False):
73
73
        self.calls.append(
74
74
            ('compare', self.source, self.target, want_unchanged,
75
 
             specific_files, extra_trees, require_versioned, 
 
75
             specific_files, extra_trees, require_versioned,
76
76
             include_root, want_unversioned)
77
77
            )
78
 
    
 
78
 
79
79
    @classmethod
80
80
    def is_compatible(klass, source, target):
81
81
        return True
96
96
            # trivial usage
97
97
            tree.changes_from(tree2)
98
98
            # pass in all optional arguments by position
99
 
            tree.changes_from(tree2, 'unchanged', 'specific', 'extra', 
 
99
            tree.changes_from(tree2, 'unchanged', 'specific', 'extra',
100
100
                              'require', True)
101
101
            # pass in all optional arguments by keyword
102
102
            tree.changes_from(tree2,
139
139
 
140
140
        # we need to pass a known file with an unknown file to get this to
141
141
        # fail when expected.
142
 
        delta = wt.changes_from(wt.basis_tree(), wt, 
 
142
        delta = wt.changes_from(wt.basis_tree(), wt,
143
143
            specific_files=['known_file', 'unknown_file'] ,
144
144
            require_versioned=False)
145
145
        self.assertEqual(len(delta.added), 1)
210
210
                other_file_ids.append(None)
211
211
            else:
212
212
                other_file_ids.append(ie.file_id)
213
 
        
 
213
 
214
214
        exp_file_ids = []
215
215
        for path in exp_other_paths:
216
216
            if path is None: