diff -r d3147b4e3e8a -r 4c1d67e0fa8c mercurial/hgweb/protocol.py --- a/mercurial/hgweb/protocol.py Sun Jun 29 11:35:06 2008 +0200 +++ b/mercurial/hgweb/protocol.py Sun Jun 29 11:35:08 2008 +0200 @@ -97,9 +97,14 @@ req.write(z.flush()) def capabilities(web, req): - resp = ' '.join(web.capabilities()) - req.respond(HTTP_OK, HGTYPE, length=len(resp)) - req.write(resp) + caps = ['lookup', 'changegroupsubset'] + if web.repo.ui.configbool('server', 'uncompressed', untrusted=True): + caps.append('stream=%d' % web.repo.changelog.version) + if changegroupmod.bundlepriority: + caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority)) + rsp = ' '.join(caps) + req.respond(HTTP_OK, HGTYPE, length=len(rsp)) + req.write(rsp) def unbundle(web, req):