Mercurial > hg
diff mercurial/dispatch.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 | fca54469480e |
children | cce63ef1045b |
line wrap: on
line diff
--- 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)