105 desc = self.repo.ui.config("web", "description", name) |
105 desc = self.repo.ui.config("web", "description", name) |
106 publish(name, desc, path, int(repo.ui.config("web", "port", 8000))) |
106 publish(name, desc, path, int(repo.ui.config("web", "port", 8000))) |
107 |
107 |
108 class hgwebdirzc(hgwebdir_mod.hgwebdir): |
108 class hgwebdirzc(hgwebdir_mod.hgwebdir): |
109 def __init__(self, conf, baseui=None): |
109 def __init__(self, conf, baseui=None): |
110 super(hgwebdirzc, self).__init__(conf, baseui) |
110 super(hgwebdirzc, self).__init__(conf, baseui=baseui) |
111 prefix = self.ui.config("web", "prefix", "").strip('/') + '/' |
111 prefix = self.ui.config("web", "prefix", "").strip('/') + '/' |
112 for repo, path in self.repos: |
112 for repo, path in self.repos: |
113 u = self.ui.copy() |
113 u = self.ui.copy() |
114 u.readconfig(os.path.join(path, '.hg', 'hgrc')) |
114 u.readconfig(os.path.join(path, '.hg', 'hgrc')) |
115 name = os.path.basename(repo) |
115 name = os.path.basename(repo) |