345
345
next_transport = self.root_transport.clone('..')
348
349
found_bzrdir = BzrDir.open_containing_from_transport(
350
351
except errors.NotBranchError:
351
353
raise errors.NoRepositoryPresent(self)
353
356
repository = found_bzrdir.open_repository()
354
357
except errors.NoRepositoryPresent:
355
358
next_transport = found_bzrdir.root_transport.clone('..')
357
364
if ((found_bzrdir.root_transport.base ==
358
365
self.root_transport.base) or repository.is_shared()):