Show More
@@ -178,18 +178,6 b' def onetimesetup(ui):' | |||||
178 |
|
178 | |||
179 | extensions.wrapfunction(streamclone, '_walkstreamfiles', _walkstreamfiles) |
|
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 | # expose remotefilelog capabilities |
|
181 | # expose remotefilelog capabilities | |
194 | def _capabilities(orig, repo, proto): |
|
182 | def _capabilities(orig, repo, proto): | |
195 | caps = orig(repo, proto) |
|
183 | caps = orig(repo, proto) |
General Comments 0
You need to be logged in to leave comments.
Login now