/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-11-17 00:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 7183.
  • Revision ID: jelmer@jelmer.uk-20181117004107-908n1zg4j46nhbix
Fix test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
import os
33
33
 
34
34
from ... import (
 
35
    errors,
35
36
    revision,
36
37
    urlutils,
37
38
    )
275
276
        path, (gitsha1, gitsha2) = self.make_tworev_branch()
276
277
        wt = Branch.open(path).create_checkout('co')
277
278
        self.build_tree_contents([('co/foobar', b'blah')])
278
 
        self.assertRaises(errors.NoRoundtrippingSupport, wt.commit,
 
279
        self.assertRaises(
 
280
            errors.NoRoundtrippingSupport, wt.commit,
279
281
            'commit from bound branch.')
280
282
        revid = wt.commit('commit from bound branch.', lossy=True)
281
283
        self.assertEqual(revid, wt.branch.last_revision())
282
284
        self.assertEqual(
283
 
                revid,
284
 
                wt.branch.get_master_branch().last_revision())
 
285
            revid,
 
286
            wt.branch.get_master_branch().last_revision())
285
287
 
286
288
 
287
289
class ForeignTestsBranchFactory(object):