Show More
@@ -178,18 +178,6 b' def onetimesetup(ui):' | |||
|
178 | 178 | |
|
179 | 179 | extensions.wrapfunction(streamclone, '_walkstreamfiles', _walkstreamfiles) |
|
180 | 180 | |
|
181 | # We no longer use getbundle_shallow commands, but we must still | |
|
182 | # support it for migration purposes | |
|
183 | def getbundleshallow(repo, proto, others): | |
|
184 | bundlecaps = others.get('bundlecaps', '') | |
|
185 | bundlecaps = set(bundlecaps.split(',')) | |
|
186 | bundlecaps.add(constants.BUNDLE2_CAPABLITY) | |
|
187 | others['bundlecaps'] = ','.join(bundlecaps) | |
|
188 | ||
|
189 | return wireprotov1server.commands["getbundle"][0](repo, proto, others) | |
|
190 | ||
|
191 | wireprotov1server.commands["getbundle_shallow"] = (getbundleshallow, '*') | |
|
192 | ||
|
193 | 181 | # expose remotefilelog capabilities |
|
194 | 182 | def _capabilities(orig, repo, proto): |
|
195 | 183 | caps = orig(repo, proto) |
General Comments 0
You need to be logged in to leave comments.
Login now