hgext/remotefilelog/fileserverclient.py
changeset 43115 4aa72cdf616f
parent 43077 687b865b95ad
child 43117 8ff1ecfadcd1
equal deleted inserted replaced
43114:8197b395710e 43115:4aa72cdf616f
    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