diff 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
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py
+++ b/mercurial/hgweb/hgweb_mod.py
@@ -833,3 +833,9 @@ class hgweb(object):
                                                   "static"))
         req.write(staticfile(static, fname)
                   or self.t("error", error="%r not found" % fname))
+
+    def do_capabilities(self, req):
+        resp = ''
+        req.httphdr("application/mercurial-0.1", length=len(resp))
+        req.write(resp)
+