~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Vincent Ladeuil
  • Date: 2011-12-08 08:32:36 UTC
  • mto: This revision was merged to the branch mainline in revision 6350.
  • Revision ID: v.ladeuil+lp@free.fr-20111208083236-3cedhs5m0ph6hamk
Tags: bzr-2.5b4
ReleaseĀ 2.5b4

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
class DummyForeignVcsBranch(branch.BzrBranch6,foreign.ForeignBranch):
92
92
    """A Dummy VCS Branch."""
93
93
 
 
94
    @property
 
95
    def user_transport(self):
 
96
        return self.bzrdir.user_transport
 
97
 
94
98
    def __init__(self, _format, _control_files, a_bzrdir, *args, **kwargs):
95
99
        self._format = _format
96
100
        self._base = a_bzrdir.transport.base
309
313
        self.root_transport.put_bytes(".bzr", "foo")
310
314
        return super(DummyForeignVcsDir, self).create_workingtree()
311
315
 
312
 
    def open_branch(self, name=None, unsupported=False, ignore_fallbacks=True):
 
316
    def open_branch(self, name=None, unsupported=False, ignore_fallbacks=True,
 
317
            possible_transports=None):
313
318
        if name is not None:
314
319
            raise errors.NoColocatedBranchSupport(self)
315
320
        return self._format.get_branch_format().open(self, _found=True)