changeset 8798:92fc57c9f9d1

remoteui: properly create dst with copy()
author Matt Mackall <mpm@selenic.com>
date Fri, 12 Jun 2009 02:19:51 -0500
parents 9ed150d2fbd5
children 87d1fd40f57e
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Sat Jun 13 14:44:59 2009 -0500
+++ b/mercurial/cmdutil.py	Fri Jun 12 02:19:51 2009 -0500
@@ -101,10 +101,10 @@
 def remoteui(src, opts):
     'build a remote ui from ui or repo and opts'
     if hasattr(src, 'baseui'): # looks like a repository
-        dst = src.baseui # drop repo-specific config
+        dst = src.baseui.copy() # drop repo-specific config
         src = src.ui # copy target options from repo
     else: # assume it's a global ui object
-        dst = src # keep all global options
+        dst = src.copy() # keep all global options
 
     # copy ssh-specific options
     for o in 'ssh', 'remotecmd':