/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/tests/test_branch.py

  • Committer: Jelmer Vernooij
  • Date: 2018-09-25 01:18:22 UTC
  • mto: This revision was merged to the branch mainline in revision 7183.
  • Revision ID: jelmer@jelmer.uk-20180925011822-7uyk3qhi00l6ibpb
Fix committing to a bzr branch bound to a git branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        self.assertEqual(revid1, newbranch.last_revision())
273
273
        self.assertTrue(newbranch.repository.has_revision(revid2))
274
274
 
 
275
    def test_bzr_branch_bound_to_git(self):
 
276
        path, (gitsha1, gitsha2) = self.make_tworev_branch()
 
277
        br = Branch.open(path).create_checkout('co')
 
278
        self.build_tree_contents([('co/foobar', b'blah')])
 
279
        self.assertRaises(errors.NoRoundtrippingSupport, br.commit,
 
280
            'commit from bound branch.')
 
281
        br.commit('commit from bound branch.', lossy=True)
 
282
 
275
283
 
276
284
class ForeignTestsBranchFactory(object):
277
285