Comments
Patch
@@ -412,13 +412,16 @@ def branches(repo, proto, nodes):
r = []
for b in repo.branches(nodes):
r.append(encodelist(b) + "\n")
return "".join(r)
+
+WIREPROTOCAPS = ['lookup', 'changegroupsubset', 'branchmap', 'pushkey',
+ 'known', 'getbundle', 'unbundlehash', 'batch']
def capabilities(repo, proto):
- caps = ('lookup changegroupsubset branchmap pushkey known getbundle '
- 'unbundlehash batch').split()
+ # copy to prevent modification of the global list
+ caps = list(WIREPROTOCAPS)
if _allowstream(repo.ui):
if repo.ui.configbool('server', 'preferuncompressed', False):
caps.append('stream-preferred')
requiredformats = repo.requirements & repo.supportedformats
# if our local revlogs are just revlogv1, add 'stream' cap