##// END OF EJS Templates
test-http-branchmap: fix stdio mode on Windows
Yuya Nishihara -
r38051:37ef6ee8 default
parent child Browse files
Show More
@@ -59,7 +59,7 b' verify 7e7d56fe4833 (encoding fallback i'
59
59
60 $ cat <<EOF > oldhg
60 $ cat <<EOF > oldhg
61 > import threading
61 > import threading
62 > from mercurial import hg, ui, wireprotoserver
62 > from mercurial import dispatch, hg, ui, wireprotoserver
63 >
63 >
64 > class StdoutWrapper(object):
64 > class StdoutWrapper(object):
65 > def __init__(self, stdout):
65 > def __init__(self, stdout):
@@ -77,6 +77,7 b' verify 7e7d56fe4833 (encoding fallback i'
77 > def __getattr__(self, name):
77 > def __getattr__(self, name):
78 > return getattr(self._file, name)
78 > return getattr(self._file, name)
79 >
79 >
80 > dispatch.initstdio()
80 > myui = ui.ui.load()
81 > myui = ui.ui.load()
81 > fout = StdoutWrapper(myui.fout)
82 > fout = StdoutWrapper(myui.fout)
82 > myui.fout = myui.ferr
83 > myui.fout = myui.ferr
General Comments 0
You need to be logged in to leave comments. Login now