Show More
@@ -58,8 +58,8 b'' | |||
|
58 | 58 | verify 7e7d56fe4833 (encoding fallback in branchmap to maintain compatibility with 1.3.x) |
|
59 | 59 | |
|
60 | 60 | $ cat <<EOF > oldhg |
|
61 |
> import |
|
|
62 |
> from mercurial import ui, |
|
|
61 | > import threading | |
|
62 | > from mercurial import hg, ui, wireprotoserver | |
|
63 | 63 | > |
|
64 | 64 | > class StdoutWrapper(object): |
|
65 | 65 | > def __init__(self, stdout): |
@@ -77,12 +77,11 b' verify 7e7d56fe4833 (encoding fallback i' | |||
|
77 | 77 | > def __getattr__(self, name): |
|
78 | 78 | > return getattr(self._file, name) |
|
79 | 79 | > |
|
80 | > sys.stdout = StdoutWrapper(getattr(sys.stdout, 'buffer', sys.stdout)) | |
|
81 | > sys.stderr = StdoutWrapper(getattr(sys.stderr, 'buffer', sys.stderr)) | |
|
82 | > | |
|
83 | 80 | > myui = ui.ui.load() |
|
81 | > fout = StdoutWrapper(myui.fout) | |
|
82 | > myui.fout = myui.ferr | |
|
84 | 83 | > repo = hg.repository(myui, b'a') |
|
85 | > commands.serve(myui, repo, stdio=True, cmdserver=False) | |
|
84 | > wireprotoserver._runsshserver(myui, repo, myui.fin, fout, threading.Event()) | |
|
86 | 85 | > EOF |
|
87 | 86 | $ echo baz >> b/foo |
|
88 | 87 | $ hg -R b ci -m baz |
General Comments 0
You need to be logged in to leave comments.
Login now