##// 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 class hgwebdirzc(hgwebdir_mod.hgwebdir):
83 class hgwebdirzc(hgwebdir_mod.hgwebdir):
84 def run(self):
84 def run(self):
85 print os.environ
86 for r, p in self.repos:
85 for r, p in self.repos:
87 u = ui.ui(parentui=self.parentui)
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 n = os.path.basename(r)
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 return super(hgwebdirzc, self).run()
90 return super(hgwebdirzc, self).run()
92
91
93 # listen
92 # listen
General Comments 0
You need to be logged in to leave comments. Login now