835
835
def test_commit_with_checkout_and_branch_sharing_repo(self):
836
836
repo = self.make_repository('repo', shared=True)
837
837
# make_branch_and_tree ignores shared repos
839
839
tree2 = branch.create_checkout('repo/tree2')
840
840
tree2.commit('message', rev_id='rev1')
841
841
self.assertTrue(tree2.branch.repository.has_revision('rev1'))