/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 bzrlib/tests/per_repository/test_commit_builder.py

  • Committer: Martin Pool
  • Date: 2009-08-20 05:02:45 UTC
  • mfrom: (4615 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4632.
  • Revision ID: mbp@sourcefrog.net-20090820050245-o7cw6nxrzh1eah8h
News for apport feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
1267
1267
        self.addCleanup(branch.repository.abort_write_group)
1268
1268
        self.assertRaises(ValueError, builder.commit,
1269
1269
            u'Invalid\r\ncommit message\r\n')
 
1270
 
 
1271
    def test_stacked_repositories_reject_commit_builder(self):
 
1272
        # As per bug 375013, committing to stacked repositories is currently
 
1273
        # broken, so repositories with fallbacks refuse to hand out a commit
 
1274
        # builder.
 
1275
        repo_basis = self.make_repository('basis')
 
1276
        branch = self.make_branch('local')
 
1277
        repo_local = branch.repository
 
1278
        try:
 
1279
            repo_local.add_fallback_repository(repo_basis)
 
1280
        except errors.UnstackableRepositoryFormat:
 
1281
            raise tests.TestNotApplicable("not a stackable format.")
 
1282
        repo_local.lock_write()
 
1283
        self.addCleanup(repo_local.unlock)
 
1284
        self.assertRaises(errors.BzrError, repo_local.get_commit_builder,
 
1285
            branch, [], branch.get_config())