Show More
@@ -59,7 +59,7 b' verify 7e7d56fe4833 (encoding fallback i' | |||
|
59 | 59 | |
|
60 | 60 | $ cat <<EOF > oldhg |
|
61 | 61 | > import threading |
|
62 | > from mercurial import hg, ui, wireprotoserver | |
|
62 | > from mercurial import dispatch, hg, ui, wireprotoserver | |
|
63 | 63 | > |
|
64 | 64 | > class StdoutWrapper(object): |
|
65 | 65 | > def __init__(self, stdout): |
@@ -77,6 +77,7 b' verify 7e7d56fe4833 (encoding fallback i' | |||
|
77 | 77 | > def __getattr__(self, name): |
|
78 | 78 | > return getattr(self._file, name) |
|
79 | 79 | > |
|
80 | > dispatch.initstdio() | |
|
80 | 81 | > myui = ui.ui.load() |
|
81 | 82 | > fout = StdoutWrapper(myui.fout) |
|
82 | 83 | > myui.fout = myui.ferr |
General Comments 0
You need to be logged in to leave comments.
Login now