mercurial/wireproto.py
changeset 27243 3abee2ba27af
parent 26911 d7e5e4da8394
child 27246 b288fb2724bf
equal deleted inserted replaced
27242:58f473908951 27243:3abee2ba27af
   164              'cbattempted': 'boolean'}
   164              'cbattempted': 'boolean'}
   165 
   165 
   166 # client side
   166 # client side
   167 
   167 
   168 class wirepeer(peer.peerrepository):
   168 class wirepeer(peer.peerrepository):
   169 
   169     """Client-side interface for communicating with a peer repository.
       
   170 
       
   171     Methods commonly call wire protocol commands of the same name.
       
   172 
       
   173     See also httppeer.py and sshpeer.py for protocol-specific
       
   174     implementations of this interface.
       
   175     """
   170     def batch(self):
   176     def batch(self):
   171         if self.capable('batch'):
   177         if self.capable('batch'):
   172             return remotebatch(self)
   178             return remotebatch(self)
   173         else:
   179         else:
   174             return peer.localbatch(self)
   180             return peer.localbatch(self)