mercurial/cmdutil.py
changeset 8798 92fc57c9f9d1
parent 8789 e0ed17984a48
child 8941 37a9d551346c
--- 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':