~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_foreign.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-03-11 13:47:06 UTC
  • mfrom: (5051.3.16 use-branch-open)
  • Revision ID: pqm@pqm.ubuntu.com-20100311134706-kaerqhx3lf7xn6rh
(Jelmer) Pass colocated branch names further down the call stack.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
        super(DummyForeignVcsBranchFormat, self).__init__()
172
172
        self._matchingbzrdir = DummyForeignVcsDirFormat()
173
173
 
174
 
    def open(self, a_bzrdir, _found=False):
 
174
    def open(self, a_bzrdir, name=None, _found=False):
175
175
        if not _found:
176
176
            raise NotImplementedError
177
177
        try:
178
 
            transport = a_bzrdir.get_branch_transport(None)
 
178
            transport = a_bzrdir.get_branch_transport(None, name=name)
179
179
            control_files = lockable_files.LockableFiles(transport, 'lock',
180
180
                                                         lockdir.LockDir)
181
181
            return DummyForeignVcsBranch(_format=self,