##// END OF EJS Templates
Add option "hidden" to hgwebdir....
Markus F.X.J. Oberhumer -
r4709:53eca35c default
parent child Browse files
Show More
@@ -525,6 +525,8 b' web::'
525 Default is "unknown".
525 Default is "unknown".
526 errorlog;;
526 errorlog;;
527 Where to output the error log. Default is stderr.
527 Where to output the error log. Default is stderr.
528 hidden;;
529 Whether to hide the repository in the hgwebdir index. Default is false.
528 ipv6;;
530 ipv6;;
529 Whether to use IPv6. Default is false.
531 Whether to use IPv6. Default is false.
530 name;;
532 name;;
@@ -142,6 +142,9 b' class hgwebdir(object):'
142 def get(section, name, default=None):
142 def get(section, name, default=None):
143 return u.config(section, name, default, untrusted=True)
143 return u.config(section, name, default, untrusted=True)
144
144
145 if u.configbool("web", "hidden", untrusted=True):
146 continue
147
145 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
148 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
146 .replace("//", "/")) + '/'
149 .replace("//", "/")) + '/'
147
150
General Comments 0
You need to be logged in to leave comments. Login now