--- a/hgext/remotefilelog/remotefilelogserver.py Sun May 21 02:16:24 2023 +0200
+++ b/hgext/remotefilelog/remotefilelogserver.py Sun May 21 02:29:33 2023 +0200
@@ -145,7 +145,9 @@
)
# don't clone filelogs to shallow clients
- def _walkstreamfiles(orig, repo, matcher=None, phase=False):
+ def _walkstreamfiles(
+ orig, repo, matcher=None, phase=False, obsolescence=False
+ ):
if state.shallowremote:
# if we are shallow ourselves, stream our local commits
if shallowutil.isenabled(repo):
@@ -200,7 +202,9 @@
_(b"Cannot clone from a shallow repo to a full repo.")
)
else:
- for x in orig(repo, matcher, phase=phase):
+ for x in orig(
+ repo, matcher, phase=phase, obsolescence=obsolescence
+ ):
yield x
extensions.wrapfunction(streamclone, b'_walkstreamfiles', _walkstreamfiles)