/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/branch_implementations/test_stacking.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-11-12 07:33:22 UTC
  • mfrom: (3830.2.2 fix-remote-stacking)
  • Revision ID: pqm@pqm.ubuntu.com-20081112073322-dpai0jsluo3cvpf2
(abentley) Fix stacking on shared repository branch via smart server

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
            'transform_fallback_location', hook, None)
392
392
        branch.Branch.open('stacked')
393
393
        self.assertEqual(['../stack-on'], hook_calls)
 
394
 
 
395
    def test_stack_on_repository_branch(self):
 
396
        # Stacking should work when the repo isn't co-located with the
 
397
        # stack-on branch.
 
398
        try:
 
399
            repo = self.make_repository('repo', shared=True)
 
400
        except errors.IncompatibleFormat:
 
401
            raise TestNotApplicable()
 
402
        # Avoid make_branch, which produces standalone branches.
 
403
        bzrdir = self.make_bzrdir('repo/stack-on')
 
404
        b = bzrdir.create_branch()
 
405
        transport = self.get_transport('stacked')
 
406
        b.bzrdir.clone_on_transport(transport, stacked_on=b.base)
 
407
        # Ensure that opening the branch doesn't raise.
 
408
        branch.Branch.open(transport.base)