Show More
@@ -2715,6 +2715,21 b' def debugwireproto(ui, repo, **opts):' | |||
|
2715 | 2715 | |
|
2716 | 2716 | Read a line of output from the server. If there are multiple output |
|
2717 | 2717 | pipes, reads only the main pipe. |
|
2718 | ||
|
2719 | ereadline | |
|
2720 | --------- | |
|
2721 | ||
|
2722 | Like ``readline``, but read from the stderr pipe, if available. | |
|
2723 | ||
|
2724 | read <X> | |
|
2725 | -------- | |
|
2726 | ||
|
2727 | ``read()`` N bytes from the server's main output pipe. | |
|
2728 | ||
|
2729 | eread <X> | |
|
2730 | --------- | |
|
2731 | ||
|
2732 | ``read()`` N bytes from the server's stderr pipe, if available. | |
|
2718 | 2733 | """ |
|
2719 | 2734 | opts = pycompat.byteskwargs(opts) |
|
2720 | 2735 | |
@@ -2855,6 +2870,14 b' def debugwireproto(ui, repo, **opts):' | |||
|
2855 | 2870 | stderr.read() |
|
2856 | 2871 | elif action == 'readline': |
|
2857 | 2872 | stdout.readline() |
|
2873 | elif action == 'ereadline': | |
|
2874 | stderr.readline() | |
|
2875 | elif action.startswith('read '): | |
|
2876 | count = int(action.split(' ', 1)[1]) | |
|
2877 | stdout.read(count) | |
|
2878 | elif action.startswith('eread '): | |
|
2879 | count = int(action.split(' ', 1)[1]) | |
|
2880 | stderr.read(count) | |
|
2858 | 2881 | else: |
|
2859 | 2882 | raise error.Abort(_('unknown action: %s') % action) |
|
2860 | 2883 |
General Comments 0
You need to be logged in to leave comments.
Login now