Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/hgweb/hgweb_mod.py @ 2622:064aef9162cc
rename stream hgrc option to compressed.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Sun, 16 Jul 2006 10:04:16 -0700 |
parents | 5a5852a417b1 |
children | ebf033bc8eb2 8a798185809d |
comparison
equal
deleted
inserted
replaced
2621:5a5852a417b1 | 2622:064aef9162cc |
---|---|
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 caps = ['unbundle'] | 863 caps = ['unbundle'] |
864 if self.repo.ui.configbool('server', 'stream'): | 864 if self.repo.ui.configbool('server', 'uncompressed'): |
865 caps.append('stream=%d' % self.repo.revlogversion) | 865 caps.append('stream=%d' % self.repo.revlogversion) |
866 resp = ' '.join(caps) | 866 resp = ' '.join(caps) |
867 req.httphdr("application/mercurial-0.1", length=len(resp)) | 867 req.httphdr("application/mercurial-0.1", length=len(resp)) |
868 req.write(resp) | 868 req.write(resp) |
869 | 869 |