diff --git a/remotefilelog/fileserverclient.py b/remotefilelog/fileserverclient.py --- a/remotefilelog/fileserverclient.py +++ b/remotefilelog/fileserverclient.py @@ -123,8 +123,15 @@ bundlecaps.append(excludecap) opts['bundlecaps'] = ','.join(bundlecaps) + def _sendrequest(self, command, args, **opts): + self._updatecallstreamopts(command, args) + return super(remotefilepeer, self)._sendrequest(command, args, + **opts) + def _callstream(self, command, **opts): - self._updatecallstreamopts(command, opts) + supertype = super(remotefilepeer, self) + if not util.safehasattr(supertype, '_sendrequest'): + self._updatecallstreamopts(command, opts) return super(remotefilepeer, self)._callstream(command, **opts) peer.__class__ = remotefilepeer