##// END OF EJS Templates
httppeer: remove redundant code to fetch capabilities...
Gregory Szorc -
r36237:a463f375 default
parent child Browse files
Show More
@@ -221,13 +221,9 b' class httppeer(wireproto.wirepeer):'
221 221 # Begin of _basewirepeer interface.
222 222
223 223 def capabilities(self):
224 if self._caps is None:
225 try:
226 self._fetchcaps()
227 except error.RepoError:
228 self._caps = set()
229 self.ui.debug('capabilities: %s\n' %
230 (' '.join(self._caps or ['none'])))
224 # self._fetchcaps() should have been called as part of peer
225 # handshake. So self._caps should always be set.
226 assert self._caps is not None
231 227 return self._caps
232 228
233 229 # End of _basewirepeer interface.
General Comments 0
You need to be logged in to leave comments. Login now