Mercurial > hg-stable
diff mercurial/cmdutil.py @ 8189:d2899a856f9f
ui: replace parentui mechanism with repo.baseui
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | f3abe032fc89 |
children | a1a5a57efe90 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sun Apr 26 16:50:43 2009 -0500 +++ b/mercurial/cmdutil.py Sun Apr 26 16:50:43 2009 -0500 @@ -100,10 +100,10 @@ def remoteui(src, opts): 'build a remote ui from ui or repo and opts' - if hasattr(src, 'ui'): # looks like a repository - dst = src.ui.parentui # drop repo-specific config + if hasattr(src, 'baseui'): # looks like a repository + dst = src.baseui # drop repo-specific config src = src.ui # copy target options from repo - else: # assume it's a ui object + else: # assume it's a global ui object dst = src # keep all global options # copy ssh-specific options