116 u.setconfig('progress', 'disable', 'true', 'hgweb') |
116 u.setconfig('progress', 'disable', 'true', 'hgweb') |
117 |
117 |
118 if not isinstance(self.conf, (dict, list, tuple)): |
118 if not isinstance(self.conf, (dict, list, tuple)): |
119 map = {'paths': 'hgweb-paths'} |
119 map = {'paths': 'hgweb-paths'} |
120 if not os.path.exists(self.conf): |
120 if not os.path.exists(self.conf): |
121 raise util.Abort(_('config file %s not found!') % self.conf) |
121 raise error.Abort(_('config file %s not found!') % self.conf) |
122 u.readconfig(self.conf, remap=map, trust=True) |
122 u.readconfig(self.conf, remap=map, trust=True) |
123 paths = [] |
123 paths = [] |
124 for name, ignored in u.configitems('hgweb-paths'): |
124 for name, ignored in u.configitems('hgweb-paths'): |
125 for path in u.configlist('hgweb-paths', name): |
125 for path in u.configlist('hgweb-paths', name): |
126 paths.append((name, path)) |
126 paths.append((name, path)) |