hgext/zeroconf/__init__.py
changeset 10993 c1b43d786889
parent 10342 579aae5aa549
child 11005 c9b4e9431af7
equal deleted inserted replaced
10992:a9b8c8c8ce80 10993:c1b43d786889
   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)