mercurial/chgserver.py
changeset 30572 cfb227016d01
parent 30513 ff7df4bb75de
child 30587 b3643bfc7fcb
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