Esempio n. 1
0
 def test_working_tree_working_tree(self):
     # we should have an InterTree available for WorkingTree to
     # WorkingTree.
     tree = self.make_branch_and_tree('1')
     tree2 = self.make_branch_and_tree('2')
     optimiser = InterTree.get(tree, tree2)
     self.assertIsInstance(optimiser, InterTree)
     optimiser = InterTree.get(tree2, tree)
     self.assertIsInstance(optimiser, InterTree)
Esempio n. 2
0
 def test_working_tree_revision_tree(self):
     # we should have an InterTree available for WorkingTree to
     # RevisionTree.
     tree = self.make_branch_and_tree('.')
     rev_id = tree.commit('first post')
     rev_tree = tree.branch.repository.revision_tree(rev_id)
     optimiser = InterTree.get(rev_tree, tree)
     self.assertIsInstance(optimiser, InterTree)
     optimiser = InterTree.get(tree, rev_tree)
     self.assertIsInstance(optimiser, InterTree)
Esempio n. 3
0
 def test_revision_tree_revision_tree(self):
     # we should have an InterTree registered for RevisionTree to
     # RevisionTree.
     tree = self.make_branch_and_tree('.')
     rev_id = tree.commit('first post')
     rev_id2 = tree.commit('second post', allow_pointless=True)
     rev_tree = tree.branch.repository.revision_tree(rev_id)
     rev_tree2 = tree.branch.repository.revision_tree(rev_id2)
     optimiser = InterTree.get(rev_tree, rev_tree2)
     self.assertIsInstance(optimiser, InterTree)
     optimiser = InterTree.get(rev_tree2, rev_tree)
     self.assertIsInstance(optimiser, InterTree)