##// END OF EJS Templates
hgweb: extract config values after reading webdir-config
Dirkjan Ochtman -
r8621:13613221 default
parent child Browse files
Show More
@@ -61,13 +61,6 b' class hgwebdir(object):'
61 61 self.ui.setconfig('ui', 'report_untrusted', 'off')
62 62 self.ui.setconfig('ui', 'interactive', 'off')
63 63
64 self.motd = self.ui.config('web', 'motd')
65 self.style = self.ui.config('web', 'style', 'paper')
66 self.stripecount = self.ui.config('web', 'stripes', 1)
67 if self.stripecount:
68 self.stripecount = int(self.stripecount)
69 self._baseurl = self.ui.config('web', 'baseurl')
70
71 64 if not isinstance(self.conf, (dict, list, tuple)):
72 65 map = {'paths': 'hgweb-paths'}
73 66 self.ui.readconfig(self.conf, remap=map, trust=True)
@@ -77,6 +70,13 b' class hgwebdir(object):'
77 70 elif isinstance(self.conf, dict):
78 71 paths = self.conf.items()
79 72
73 self.motd = self.ui.config('web', 'motd')
74 self.style = self.ui.config('web', 'style', 'paper')
75 self.stripecount = self.ui.config('web', 'stripes', 1)
76 if self.stripecount:
77 self.stripecount = int(self.stripecount)
78 self._baseurl = self.ui.config('web', 'baseurl')
79
80 80 self.repos = findrepos(paths)
81 81 for prefix, root in self.ui.configitems('collections'):
82 82 prefix = util.pconvert(prefix)
General Comments 0
You need to be logged in to leave comments. Login now