mercurial/dispatch.py
changeset 8190 9b8ac5fb7760
parent 8144 fca54469480e
child 8206 cce63ef1045b
--- a/mercurial/dispatch.py	Sun Apr 26 16:50:43 2009 -0500
+++ b/mercurial/dispatch.py	Sun Apr 26 16:50:43 2009 -0500
@@ -269,7 +269,7 @@
         lui = ui
     if path:
         try:
-            lui = _ui.ui(parentui=ui)
+            lui = ui.copy()
             lui.readconfig(os.path.join(path, ".hg", "hgrc"))
         except IOError:
             pass
@@ -278,7 +278,7 @@
     rpath = _earlygetopt(["-R", "--repository", "--repo"], args)
     if rpath:
         path = lui.expandpath(rpath[-1])
-        lui = _ui.ui(parentui=ui)
+        lui = ui.copy()
         lui.readconfig(os.path.join(path, ".hg", "hgrc"))
 
     extensions.loadall(lui)