Skip to content
Snippets Groups Projects
Commit 92fc57c9 authored by Matt Mackall's avatar Matt Mackall
Browse files

remoteui: properly create dst with copy()

parent 9ed150d2
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,6 @@
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
......@@ -105,6 +105,6 @@
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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment