/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 breezy/tests/test_tree.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-18 23:14:00 UTC
  • mfrom: (7490.40.62 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200718231400-jaes9qltn8oi8xss
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
             include_root, want_unversioned)
92
92
            )
93
93
 
 
94
    def find_source_path(self, target_path, recurse='none'):
 
95
        self.calls.append(
 
96
            ('find_source_path', self.source, self.target, target_path, recurse))
 
97
 
94
98
    @classmethod
95
99
    def is_compatible(klass, source, target):
96
100
        return True
106
110
            RecordingOptimiser.calls = []
107
111
            InterTree.register_optimiser(RecordingOptimiser)
108
112
            tree = self.make_branch_and_tree('1')
 
113
            null_tree = tree.basis_tree()
109
114
            tree2 = self.make_branch_and_tree('2')
110
115
            # do a series of calls:
111
116
            # trivial usage
126
131
            InterTree._optimisers = old_optimisers
127
132
        self.assertEqual(
128
133
            [
 
134
                ('find_source_path', null_tree, tree, '', 'none'),
 
135
                ('find_source_path', null_tree, tree2, '', 'none'),
129
136
                ('compare', tree2, tree, False, None, None, False, False,
130
137
                    False),
131
138
                ('compare', tree2, tree, 'unchanged', 'specific', 'extra',