65
65
extra_trees=None, require_versioned=False, include_root=False):
67
67
('compare', self.source, self.target, want_unchanged,
68
specific_files, extra_trees, require_versioned, include_root)
68
specific_files, extra_trees, require_versioned,
89
90
tree.changes_from(tree2)
90
91
# pass in all optional arguments by position
91
92
tree.changes_from(tree2, 'unchanged', 'specific', 'extra',
92
'require', 'include_root')
93
94
# pass in all optional arguments by keyword
94
95
tree.changes_from(tree2,
95
96
specific_files='specific',
96
97
want_unchanged='unchanged',
97
98
extra_trees='extra',
98
99
require_versioned='require',
99
include_root='include_root',
102
103
InterTree._optimisers = old_optimisers
103
104
self.assertEqual(
105
106
('compare', tree2, tree, False, None, None, False, False),
106
('compare', tree2, tree, 'unchanged', 'specific', 'extra',
107
'require', 'include_root'),
108
('compare', tree2, tree, 'unchanged', 'specific', 'extra',
109
'require', 'include_root'),
107
('compare', tree2, tree, 'unchanged', 'specific', 'extra',
109
('compare', tree2, tree, 'unchanged', 'specific', 'extra',
110
111
], RecordingOptimiser.calls)
112
113
def test_changes_from_with_root(self):