Submitter | phabricator |
---|---|
Date | Feb. 13, 2018, 3:48 a.m. |
Message ID | <differential-rev-PHID-DREV-gugmhch4fxtyv4borq66-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/27795/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -221,13 +221,9 @@ # Begin of _basewirepeer interface. def capabilities(self): - if self._caps is None: - try: - self._fetchcaps() - except error.RepoError: - self._caps = set() - self.ui.debug('capabilities: %s\n' % - (' '.join(self._caps or ['none']))) + # self._fetchcaps() should have been called as part of peer + # handshake. So self._caps should always be set. + assert self._caps is not None return self._caps # End of _basewirepeer interface.