equal
deleted
inserted
replaced
87 if ( |
87 if ( |
88 constants.NETWORK_CAP_LEGACY_SSH_GETFILES |
88 constants.NETWORK_CAP_LEGACY_SSH_GETFILES |
89 not in self.capabilities() |
89 not in self.capabilities() |
90 ): |
90 ): |
91 return |
91 return |
92 if not util.safehasattr(self, b'_localrepo'): |
92 if not util.safehasattr(self, '_localrepo'): |
93 return |
93 return |
94 if ( |
94 if ( |
95 constants.SHALLOWREPO_REQUIREMENT |
95 constants.SHALLOWREPO_REQUIREMENT |
96 not in self._localrepo.requirements |
96 not in self._localrepo.requirements |
97 ): |
97 ): |
127 command, args, **opts |
127 command, args, **opts |
128 ) |
128 ) |
129 |
129 |
130 def _callstream(self, command, **opts): |
130 def _callstream(self, command, **opts): |
131 supertype = super(remotefilepeer, self) |
131 supertype = super(remotefilepeer, self) |
132 if not util.safehasattr(supertype, b'_sendrequest'): |
132 if not util.safehasattr(supertype, '_sendrequest'): |
133 self._updatecallstreamopts(command, pycompat.byteskwargs(opts)) |
133 self._updatecallstreamopts(command, pycompat.byteskwargs(opts)) |
134 return super(remotefilepeer, self)._callstream(command, **opts) |
134 return super(remotefilepeer, self)._callstream(command, **opts) |
135 |
135 |
136 peer.__class__ = remotefilepeer |
136 peer.__class__ = remotefilepeer |
137 |
137 |