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