Show More
@@ -414,9 +414,12 b' def branches(repo, proto, nodes):' | |||||
414 | r.append(encodelist(b) + "\n") |
|
414 | r.append(encodelist(b) + "\n") | |
415 | return "".join(r) |
|
415 | return "".join(r) | |
416 |
|
416 | |||
|
417 | ||||
|
418 | wireprotocaps = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey', | |||
|
419 | 'known', 'getbundle', 'unbundlehash', 'batch'] | |||
417 | def capabilities(repo, proto): |
|
420 | def capabilities(repo, proto): | |
418 | caps = ('lookup changegroupsubset branchmap pushkey known getbundle ' |
|
421 | # copy to prevent modification of the global list | |
419 | 'unbundlehash batch').split() |
|
422 | caps = list(wireprotocaps) | |
420 | if _allowstream(repo.ui): |
|
423 | if _allowstream(repo.ui): | |
421 | if repo.ui.configbool('server', 'preferuncompressed', False): |
|
424 | if repo.ui.configbool('server', 'preferuncompressed', False): | |
422 | caps.append('stream-preferred') |
|
425 | caps.append('stream-preferred') |
General Comments 0
You need to be logged in to leave comments.
Login now