Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 31132:f5131d4f512a
color: move 'styles' definition on the 'ui' object
Same logic as for '_terminfoparams'. The content depends on the config so it
should be specific to each 'ui instance.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sun, 06 Nov 2016 20:16:01 +0100 |
parents | 1613c55ad3d6 |
children | 13bbcd56c57a |
comparison
equal
deleted
inserted
replaced
31131:1613c55ad3d6 | 31132:f5131d4f512a |
---|---|
156 # Blocked time | 156 # Blocked time |
157 self.logblockedtimes = False | 157 self.logblockedtimes = False |
158 # color mode: see mercurial/color.py for possible value | 158 # color mode: see mercurial/color.py for possible value |
159 self._colormode = None | 159 self._colormode = None |
160 self._terminfoparams = {} | 160 self._terminfoparams = {} |
161 self._styles = {} | |
161 | 162 |
162 if src: | 163 if src: |
163 self.fout = src.fout | 164 self.fout = src.fout |
164 self.ferr = src.ferr | 165 self.ferr = src.ferr |
165 self.fin = src.fin | 166 self.fin = src.fin |
174 self.environ = src.environ | 175 self.environ = src.environ |
175 self.callhooks = src.callhooks | 176 self.callhooks = src.callhooks |
176 self.insecureconnections = src.insecureconnections | 177 self.insecureconnections = src.insecureconnections |
177 self._colormode = src._colormode | 178 self._colormode = src._colormode |
178 self._terminfoparams = src._terminfoparams.copy() | 179 self._terminfoparams = src._terminfoparams.copy() |
180 self._styles = src._styles.copy() | |
179 | 181 |
180 self.fixconfig() | 182 self.fixconfig() |
181 | 183 |
182 self.httppasswordmgrdb = src.httppasswordmgrdb | 184 self.httppasswordmgrdb = src.httppasswordmgrdb |
183 self._blockedtimes = src._blockedtimes | 185 self._blockedtimes = src._blockedtimes |