# HG changeset patch # User Pulkit Goyal # Date 2018-10-24 14:51:49 # Node ID 1c34b31a6c9c04a47e2779bab37c26c277ad9ef0 # Parent 6f0b6905ef6fdfac7774191d7869131a31f99020 remotefilelogserver: add a matcher argument to _walkstreamfiles() Implementing narrow stream clones in core, I added an optional matcher argument. The function in remotefilelogserver.py does not know about that argument and does not accept that and hence some tests fails. Differential Revision: https://phab.mercurial-scm.org/D5191 diff --git a/hgext/remotefilelog/remotefilelogserver.py b/hgext/remotefilelog/remotefilelogserver.py --- a/hgext/remotefilelog/remotefilelogserver.py +++ b/hgext/remotefilelog/remotefilelogserver.py @@ -129,7 +129,7 @@ def onetimesetup(ui): wireprotov1server.commands['stream_out_shallow'] = (stream_out_shallow, '*') # don't clone filelogs to shallow clients - def _walkstreamfiles(orig, repo): + def _walkstreamfiles(orig, repo, matcher=None): if state.shallowremote: # if we are shallow ourselves, stream our local commits if shallowutil.isenabled(repo): @@ -173,7 +173,7 @@ def onetimesetup(ui): raise error.Abort(_("Cannot clone from a shallow repo " "to a full repo.")) else: - for x in orig(repo): + for x in orig(repo, matcher): yield x extensions.wrapfunction(streamclone, '_walkstreamfiles', _walkstreamfiles)