comparison mercurial/ui.py @ 31130:268caf97c38f

color: move the dict with terminfo parameters on the ui object This dictionnary is affected by the content of the config, so we should have one for each ui config. We rename the global dict to '_baseterminfoparams' to make the situation clearer.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 25 Feb 2017 15:00:51 +0100
parents 3f8f53190d6a
children 1613c55ad3d6
comparison
equal deleted inserted replaced
31129:7f056fdbe37e 31130:268caf97c38f
155 self.insecureconnections = False 155 self.insecureconnections = False
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 161
161 if src: 162 if src:
162 self.fout = src.fout 163 self.fout = src.fout
163 self.ferr = src.ferr 164 self.ferr = src.ferr
164 self.fin = src.fin 165 self.fin = src.fin
172 self._trustgroups = src._trustgroups.copy() 173 self._trustgroups = src._trustgroups.copy()
173 self.environ = src.environ 174 self.environ = src.environ
174 self.callhooks = src.callhooks 175 self.callhooks = src.callhooks
175 self.insecureconnections = src.insecureconnections 176 self.insecureconnections = src.insecureconnections
176 self._colormode = src._colormode 177 self._colormode = src._colormode
178 self._terminfoparams = src._terminfoparams.copy()
177 179
178 self.fixconfig() 180 self.fixconfig()
179 181
180 self.httppasswordmgrdb = src.httppasswordmgrdb 182 self.httppasswordmgrdb = src.httppasswordmgrdb
181 self._blockedtimes = src._blockedtimes 183 self._blockedtimes = src._blockedtimes