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