mercurial/hgweb/hgweb_mod.py
changeset 2621 5a5852a417b1
parent 2612 ffb895f16925
child 2622 064aef9162cc
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.