/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Martin Pool
  • Date: 2010-04-21 04:53:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5189.
  • Revision ID: mbp@canonical.com-20100421045333-t3yfjjbzo3n8fwv4
Repository implements ControlComponent too

Show diffs side-by-side

added added

removed removed

Lines of Context:
642
642
        return self._custom_format._serializer
643
643
 
644
644
 
645
 
class RemoteRepository(_RpcHelper, lock._RelockDebugMixin):
 
645
class RemoteRepository(_RpcHelper, lock._RelockDebugMixin,
 
646
    bzrdir.ControlComponent):
646
647
    """Repository accessed over rpc.
647
648
 
648
649
    For the moment most operations are performed using local transport-backed
691
692
        # Additional places to query for data.
692
693
        self._fallback_repositories = []
693
694
 
 
695
    @property
 
696
    def user_transport(self):
 
697
        return self.bzrdir.user_transport
 
698
 
 
699
    @property
 
700
    def control_transport(self):
 
701
        # XXX: Normally you shouldn't directly get at the remote repository
 
702
        # transport, but I'm not sure it's worth making this method
 
703
        # optional -- mbp 2010-04-21
 
704
        return self.bzrdir.get_repository_transport(None)
 
705
        
694
706
    def __str__(self):
695
707
        return "%s(%s)" % (self.__class__.__name__, self.base)
696
708