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