Mercurial > hg
comparison mercurial/wireproto.py @ 27243:3abee2ba27af
wireproto: add docstring for wirepeer
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 04 Dec 2015 13:15:14 -0800 |
parents | d7e5e4da8394 |
children | b288fb2724bf |
comparison
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) |