Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
8188:f3abe032fc89 | 8189:d2899a856f9f |
---|---|
98 limit = sys.maxint | 98 limit = sys.maxint |
99 return limit | 99 return limit |
100 | 100 |
101 def remoteui(src, opts): | 101 def remoteui(src, opts): |
102 'build a remote ui from ui or repo and opts' | 102 'build a remote ui from ui or repo and opts' |
103 if hasattr(src, 'ui'): # looks like a repository | 103 if hasattr(src, 'baseui'): # looks like a repository |
104 dst = src.ui.parentui # drop repo-specific config | 104 dst = src.baseui # drop repo-specific config |
105 src = src.ui # copy target options from repo | 105 src = src.ui # copy target options from repo |
106 else: # assume it's a ui object | 106 else: # assume it's a global ui object |
107 dst = src # keep all global options | 107 dst = src # keep all global options |
108 | 108 |
109 # copy ssh-specific options | 109 # copy ssh-specific options |
110 for o in 'ssh', 'remotecmd': | 110 for o in 'ssh', 'remotecmd': |
111 v = opts.get(o) or src.config('ui', o) | 111 v = opts.get(o) or src.config('ui', o) |