changeset 40517:2dd3a0201307

remotefilelog: drop compat code for "getbundle_shallow" wireprotocol command Doing some annotate on hgexperimental shows that getbundle_shallow used to exist in 2013 or before. We don't have any pre-2013 remotefilelog users except Fb themselves and I doubt they are going to use in-core remotefilelog. So it's safe to remove this. Differential Revision: https://phab.mercurial-scm.org/D5193
author Pulkit Goyal <pulkit@yandex-team.ru>
date Wed, 24 Oct 2018 18:48:43 +0300
parents 67e35dceab9b
children d11e2c5b287e
files hgext/remotefilelog/remotefilelogserver.py
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/remotefilelog/remotefilelogserver.py	Wed Oct 24 17:54:34 2018 +0300
+++ b/hgext/remotefilelog/remotefilelogserver.py	Wed Oct 24 18:48:43 2018 +0300
@@ -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)