##// 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 525 Default is "unknown".
526 526 errorlog;;
527 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 530 ipv6;;
529 531 Whether to use IPv6. Default is false.
530 532 name;;
@@ -142,6 +142,9 b' class hgwebdir(object):'
142 142 def get(section, name, default=None):
143 143 return u.config(section, name, default, untrusted=True)
144 144
145 if u.configbool("web", "hidden", untrusted=True):
146 continue
147
145 148 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
146 149 .replace("//", "/")) + '/'
147 150
General Comments 0
You need to be logged in to leave comments. Login now