285 else: |
285 else: |
286 raise error.ProgrammingError('invalid S channel type: %s' % type) |
286 raise error.ProgrammingError('invalid S channel type: %s' % type) |
287 |
287 |
288 _iochannels = [ |
288 _iochannels = [ |
289 # server.ch, ui.fp, mode |
289 # server.ch, ui.fp, mode |
290 ('cin', 'fin', 'rb'), |
290 ('cin', 'fin', pycompat.sysstr('rb')), |
291 ('cout', 'fout', 'wb'), |
291 ('cout', 'fout', pycompat.sysstr('wb')), |
292 ('cerr', 'ferr', 'wb'), |
292 ('cerr', 'ferr', pycompat.sysstr('wb')), |
293 ] |
293 ] |
294 |
294 |
295 class chgcmdserver(commandserver.server): |
295 class chgcmdserver(commandserver.server): |
296 def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress): |
296 def __init__(self, ui, repo, fin, fout, sock, hashstate, baseaddress): |
297 super(chgcmdserver, self).__init__( |
297 super(chgcmdserver, self).__init__( |