Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/protocol.py @ 6152:c050548307a4
hgweb: use bundletypes from mercurial.changegroup
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 21 Feb 2008 15:00:25 +0100 |
parents | 948a41e77902 |
children | ef1c5a3b653d |
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py Wed Feb 20 13:38:16 2008 -0800 +++ b/mercurial/hgweb/protocol.py Thu Feb 21 15:00:25 2008 +0100 @@ -101,14 +101,7 @@ req.write(z.flush()) def capabilities(web, req): - caps = ['lookup', 'changegroupsubset'] - if web.configbool('server', 'uncompressed'): - caps.append('stream=%d' % web.repo.changelog.version) - # XXX: make configurable and/or share code with do_unbundle: - unbundleversions = ['HG10GZ', 'HG10BZ', 'HG10UN'] - if unbundleversions: - caps.append('unbundle=%s' % ','.join(unbundleversions)) - resp = ' '.join(caps) + resp = ' '.join(web.capabilities()) req.respond(HTTP_OK, HGTYPE, length=len(resp)) req.write(resp)