66
65
self.assertFalse(source.branch.repository.has_revision('2'))
68
67
self.runbzr('branch source target --basis commit_tree')
70
69
self.assertEqual('2', target.open_branch().last_revision())
72
71
self.assertTrue(target.open_branch().repository.has_revision('2'))
74
73
def test_branch_only_copies_history(self):
75
74
# Knit branches should only push the history for the current revision.
77
76
format.repository_format = RepositoryFormatKnit1()
78
77
shared_repo = self.make_repository('repo', format=format, shared=True)
79
78
shared_repo.set_make_working_trees(True)