D5193: remotefilelog: drop compat code for "getbundle_shallow" wireprotocol command
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Mon Nov 5 19:57:39 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2dd3a0201307: remotefilelog: drop compat code for "getbundle_shallow" wireprotocol command (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5193?vs=12342&id=12429
REVISION DETAIL
https://phab.mercurial-scm.org/D5193
AFFECTED FILES
hgext/remotefilelog/remotefilelogserver.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/remotefilelogserver.py b/hgext/remotefilelog/remotefilelogserver.py
--- a/hgext/remotefilelog/remotefilelogserver.py
+++ b/hgext/remotefilelog/remotefilelogserver.py
@@ -178,18 +178,6 @@
extensions.wrapfunction(streamclone, '_walkstreamfiles', _walkstreamfiles)
- # We no longer use getbundle_shallow commands, but we must still
- # support it for migration purposes
- def getbundleshallow(repo, proto, others):
- bundlecaps = others.get('bundlecaps', '')
- bundlecaps = set(bundlecaps.split(','))
- bundlecaps.add(constants.BUNDLE2_CAPABLITY)
- others['bundlecaps'] = ','.join(bundlecaps)
-
- return wireprotov1server.commands["getbundle"][0](repo, proto, others)
-
- wireprotov1server.commands["getbundle_shallow"] = (getbundleshallow, '*')
-
# expose remotefilelog capabilities
def _capabilities(orig, repo, proto):
caps = orig(repo, proto)
To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list