hgext/zeroconf/__init__.py
changeset 8191 35604226d712
parent 8190 9b8ac5fb7760
child 8225 46293a0c7e9f
equal deleted inserted replaced
8190:9b8ac5fb7760 8191:35604226d712
   110         publish(name, desc, name, int(repo.ui.config("web", "port", 8000)))
   110         publish(name, desc, name, int(repo.ui.config("web", "port", 8000)))
   111 
   111 
   112 class hgwebdirzc(hgwebdir_mod.hgwebdir):
   112 class hgwebdirzc(hgwebdir_mod.hgwebdir):
   113     def run(self):
   113     def run(self):
   114         for r, p in self.repos:
   114         for r, p in self.repos:
   115             u = self.parentui.copy()
   115             u = self.ui.copy()
   116             u.readconfig(os.path.join(p, '.hg', 'hgrc'))
   116             u.readconfig(os.path.join(p, '.hg', 'hgrc'))
   117             n = os.path.basename(r)
   117             n = os.path.basename(r)
   118             publish(n, "hgweb", p, int(u.config("web", "port", 8000)))
   118             publish(n, "hgweb", p, int(u.config("web", "port", 8000)))
   119         return super(hgwebdirzc, self).run()
   119         return super(hgwebdirzc, self).run()
   120 
   120