Mercurial > hg
comparison mercurial/chgserver.py @ 30572:cfb227016d01
chgserver: call "load" for new ui objects
After d83ca854fa21, we need to call "ui.load" explicitly to load config
files.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 05 Dec 2016 21:36:35 +0000 |
parents | ff7df4bb75de |
children | b3643bfc7fcb |
comparison
equal
deleted
inserted
replaced
30571:91db2aa0edfe | 30572:cfb227016d01 |
---|---|
253 return chgui(srcui) | 253 return chgui(srcui) |
254 | 254 |
255 def _loadnewui(srcui, args): | 255 def _loadnewui(srcui, args): |
256 from . import dispatch # avoid cycle | 256 from . import dispatch # avoid cycle |
257 | 257 |
258 newui = srcui.__class__() | 258 newui = srcui.__class__.load() |
259 for a in ['fin', 'fout', 'ferr', 'environ']: | 259 for a in ['fin', 'fout', 'ferr', 'environ']: |
260 setattr(newui, a, getattr(srcui, a)) | 260 setattr(newui, a, getattr(srcui, a)) |
261 if util.safehasattr(srcui, '_csystem'): | 261 if util.safehasattr(srcui, '_csystem'): |
262 newui._csystem = srcui._csystem | 262 newui._csystem = srcui._csystem |
263 | 263 |