comparison hgext/zeroconf/__init__.py @ 8190:9b8ac5fb7760

ui: kill most users of parentui name and arg, replace with .copy()
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:43 -0500
parents 14f27921932a
children 35604226d712
comparison
equal deleted inserted replaced
8189:d2899a856f9f 8190:9b8ac5fb7760
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 = ui.ui(parentui=self.parentui) 115 u = self.parentui.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