comparison mercurial/sshserver.py @ 6042:2da5b19a6460

Merge with crew
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 06 Feb 2008 19:57:52 -0800
parents 323b9c55b328
children f89fd07fc51d
comparison
equal deleted inserted replaced
6041:dd714452c26e 6042:2da5b19a6460
6 # This software may be used and distributed according to the terms 6 # This software may be used and distributed according to the terms
7 # of the GNU General Public License, incorporated herein by reference. 7 # of the GNU General Public License, incorporated herein by reference.
8 8
9 from i18n import _ 9 from i18n import _
10 from node import * 10 from node import *
11 import os, streamclone, sys, tempfile, util 11 import os, streamclone, sys, tempfile, util, hook
12 12
13 class sshserver(object): 13 class sshserver(object):
14 def __init__(self, ui, repo): 14 def __init__(self, ui, repo):
15 self.ui = ui 15 self.ui = ui
16 self.repo = repo 16 self.repo = repo
17 self.lock = None 17 self.lock = None
18 self.fin = sys.stdin 18 self.fin = sys.stdin
19 self.fout = sys.stdout 19 self.fout = sys.stdout
20 20
21 hook.redirect(True)
21 sys.stdout = sys.stderr 22 sys.stdout = sys.stderr
22 23
23 # Prevent insertion/deletion of CRs 24 # Prevent insertion/deletion of CRs
24 util.set_binary(self.fin) 25 util.set_binary(self.fin)
25 util.set_binary(self.fout) 26 util.set_binary(self.fout)