Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2620:de82749d3a71 | 2621:5a5852a417b1 |
---|---|
858 "static")) | 858 "static")) |
859 req.write(staticfile(static, fname, req) | 859 req.write(staticfile(static, fname, req) |
860 or self.t("error", error="%r not found" % fname)) | 860 or self.t("error", error="%r not found" % fname)) |
861 | 861 |
862 def do_capabilities(self, req): | 862 def do_capabilities(self, req): |
863 resp = 'unbundle stream=%d' % (self.repo.revlogversion,) | 863 caps = ['unbundle'] |
864 if self.repo.ui.configbool('server', 'stream'): | |
865 caps.append('stream=%d' % self.repo.revlogversion) | |
866 resp = ' '.join(caps) | |
864 req.httphdr("application/mercurial-0.1", length=len(resp)) | 867 req.httphdr("application/mercurial-0.1", length=len(resp)) |
865 req.write(resp) | 868 req.write(resp) |
866 | 869 |
867 def check_perm(self, req, op, default): | 870 def check_perm(self, req, op, default): |
868 '''check permission for operation based on user auth. | 871 '''check permission for operation based on user auth. |