Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgweb_mod.py @ 2621:5a5852a417b1
clone: disable stream support on server side by default.
enable in hgrc like this:
[server]
stream=True
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sat, 15 Jul 2006 16:06:35 -0700 |
parents | ffb895f16925 |
children | 064aef9162cc |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Sat Jul 15 16:06:05 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sat Jul 15 16:06:35 2006 -0700 @@ -860,7 +860,10 @@ or self.t("error", error="%r not found" % fname)) def do_capabilities(self, req): - resp = 'unbundle stream=%d' % (self.repo.revlogversion,) + caps = ['unbundle'] + if self.repo.ui.configbool('server', 'stream'): + caps.append('stream=%d' % self.repo.revlogversion) + resp = ' '.join(caps) req.httphdr("application/mercurial-0.1", length=len(resp)) req.write(resp)