hgext/zeroconf/__init__.py
changeset 8190 9b8ac5fb7760
parent 8003 14f27921932a
child 8191 35604226d712
--- a/hgext/zeroconf/__init__.py	Sun Apr 26 16:50:43 2009 -0500
+++ b/hgext/zeroconf/__init__.py	Sun Apr 26 16:50:43 2009 -0500
@@ -112,7 +112,7 @@
 class hgwebdirzc(hgwebdir_mod.hgwebdir):
     def run(self):
         for r, p in self.repos:
-            u = ui.ui(parentui=self.parentui)
+            u = self.parentui.copy()
             u.readconfig(os.path.join(p, '.hg', 'hgrc'))
             n = os.path.basename(r)
             publish(n, "hgweb", p, int(u.config("web", "port", 8000)))