equal
deleted
inserted
replaced
33 if isinstance(conf, (list, tuple)): |
33 if isinstance(conf, (list, tuple)): |
34 self.repos = cleannames(conf) |
34 self.repos = cleannames(conf) |
35 elif isinstance(conf, dict): |
35 elif isinstance(conf, dict): |
36 self.repos = sorted(cleannames(conf.items())) |
36 self.repos = sorted(cleannames(conf.items())) |
37 else: |
37 else: |
38 self.ui.readconfig(conf, remap={'paths': 'hgweb-paths'}) |
38 self.ui.readconfig(conf, remap={'paths': 'hgweb-paths'}, trust=True) |
39 self.repos = [] |
39 self.repos = [] |
40 |
40 |
41 self.motd = self.ui.config('web', 'motd') |
41 self.motd = self.ui.config('web', 'motd') |
42 self.style = self.ui.config('web', 'style', 'paper') |
42 self.style = self.ui.config('web', 'style', 'paper') |
43 self.stripecount = self.ui.config('web', 'stripes', 1) |
43 self.stripecount = self.ui.config('web', 'stripes', 1) |