##// END OF EJS Templates
configitems: register the 'web.prefix' config
Boris Feld -
r34240:d24816df default
parent child Browse files
Show More
@@ -631,6 +631,9 b" coreconfigitem('web', 'ipv6',"
631 631 coreconfigitem('web', 'port',
632 632 default=8000,
633 633 )
634 coreconfigitem('web', 'prefix',
635 default='',
636 )
634 637 coreconfigitem('worker', 'backgroundclose',
635 638 default=dynamicdefault,
636 639 )
@@ -177,7 +177,7 b' class hgwebdir(object):'
177 177 if self.stripecount:
178 178 self.stripecount = int(self.stripecount)
179 179 self._baseurl = self.ui.config('web', 'baseurl')
180 prefix = self.ui.config('web', 'prefix', '')
180 prefix = self.ui.config('web', 'prefix')
181 181 if prefix.startswith('/'):
182 182 prefix = prefix[1:]
183 183 if prefix.endswith('/'):
@@ -277,7 +277,7 b' class MercurialHTTPServer(_mixin, httpse'
277 277
278 278 handler.preparehttpserver(self, ui)
279 279
280 prefix = ui.config('web', 'prefix', '')
280 prefix = ui.config('web', 'prefix')
281 281 if prefix:
282 282 prefix = '/' + prefix.strip('/')
283 283 self.prefix = prefix
General Comments 0
You need to be logged in to leave comments. Login now