~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Andrew Bennetts
  • Date: 2009-02-10 05:44:04 UTC
  • mto: (4017.3.1 push.roundtrips)
  • mto: This revision was merged to the branch mainline in revision 4022.
  • Revision ID: andrew.bennetts@canonical.com-20090210054404-tej9hra1kpom9fc2
Add network_name() to RepositoryFormat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
            format.supports_external_lookups = (response[4] == 'yes')
198
198
            # Used to support creating a real format instance when needed.
199
199
            format._creating_bzrdir = self
200
 
            return RemoteRepository(self, format)
 
200
            remote_repo = RemoteRepository(self, format)
 
201
            format._creating_repo = remote_repo
 
202
            return remote_repo
201
203
        else:
202
204
            raise errors.NoRepositoryPresent(self)
203
205
 
289
291
            raise errors.BadConversionTarget(
290
292
                'Does not support nested trees', target_format)
291
293
 
 
294
    def network_name(self):
 
295
        self._creating_repo._ensure_real()
 
296
        return self._creating_repo._real_repository._format.network_name()
 
297
 
292
298
 
293
299
class RemoteRepository(_RpcHelper):
294
300
    """Repository accessed over rpc.