comparison mercurial/hgweb/hgweb_mod.py @ 2442:c660691fb45d

http: query server for capabilities
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 15 Jun 2006 17:07:30 -0700
parents f910b91dd912
children 09b1c9ef317c
comparison
equal deleted inserted replaced
2441:801dfe0aa53a 2442:c660691fb45d
831 static = self.repo.ui.config("web", "static", 831 static = self.repo.ui.config("web", "static",
832 os.path.join(self.templatepath, 832 os.path.join(self.templatepath,
833 "static")) 833 "static"))
834 req.write(staticfile(static, fname) 834 req.write(staticfile(static, fname)
835 or self.t("error", error="%r not found" % fname)) 835 or self.t("error", error="%r not found" % fname))
836
837 def do_capabilities(self, req):
838 resp = ''
839 req.httphdr("application/mercurial-0.1", length=len(resp))
840 req.write(resp)
841