diff 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
line wrap: on
line diff
--- 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)))