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