##// END OF EJS Templates
fix zeroconf handling for hgwebdir (error found by pychecker)
Benoit Boissinot -
r7282:6541696b default
parent child Browse files
Show More
@@ -82,12 +82,11 b' class hgwebzc(hgweb_mod.hgweb):'
82 82
83 83 class hgwebdirzc(hgwebdir_mod.hgwebdir):
84 84 def run(self):
85 print os.environ
86 85 for r, p in self.repos:
87 86 u = ui.ui(parentui=self.parentui)
88 u.readconfig(os.path.join(path, '.hg', 'hgrc'))
87 u.readconfig(os.path.join(p, '.hg', 'hgrc'))
89 88 n = os.path.basename(r)
90 publish(n, "hgweb", p, int(repo.ui.config("web", "port", 8000)))
89 publish(n, "hgweb", p, int(u.config("web", "port", 8000)))
91 90 return super(hgwebdirzc, self).run()
92 91
93 92 # listen
General Comments 0
You need to be logged in to leave comments. Login now