Show More
@@ -1072,6 +1072,13 b' class ui(object):' | |||||
1072 | Label names take the form of "topic.type". For example, ui.debug() |
|
1072 | Label names take the form of "topic.type". For example, ui.debug() | |
1073 | issues a label of "ui.debug". |
|
1073 | issues a label of "ui.debug". | |
1074 |
|
1074 | |||
|
1075 | Progress reports via stderr are normally cleared before writing as | |||
|
1076 | stdout and stderr go to the same terminal. This can be skipped with | |||
|
1077 | the optional keyword argument "keepprogressbar". The progress bar | |||
|
1078 | will continue to occupy a partial line on stderr in that case. | |||
|
1079 | This functionality is intended when Mercurial acts as data source | |||
|
1080 | in a pipe. | |||
|
1081 | ||||
1075 | When labeling output for a specific command, a label of |
|
1082 | When labeling output for a specific command, a label of | |
1076 | "cmdname.type" is recommended. For example, status issues |
|
1083 | "cmdname.type" is recommended. For example, status issues | |
1077 | a label of "status.modified" for modified files. |
|
1084 | a label of "status.modified" for modified files. | |
@@ -1087,8 +1094,9 b' class ui(object):' | |||||
1087 | self._buffers[-1].extend(args) |
|
1094 | self._buffers[-1].extend(args) | |
1088 | return |
|
1095 | return | |
1089 |
|
1096 | |||
1090 |
# inli |
|
1097 | # inlined _writenobuf() for speed | |
1091 | self._progclear() |
|
1098 | if not opts.get(r'keepprogressbar', False): | |
|
1099 | self._progclear() | |||
1092 | msg = b''.join(args) |
|
1100 | msg = b''.join(args) | |
1093 |
|
1101 | |||
1094 | # opencode timeblockedsection because this is a critical path |
|
1102 | # opencode timeblockedsection because this is a critical path | |
@@ -1126,7 +1134,8 b' class ui(object):' | |||||
1126 |
|
1134 | |||
1127 | def _writenobuf(self, dest, *args, **opts): |
|
1135 | def _writenobuf(self, dest, *args, **opts): | |
1128 | # update write() as well if you touch this code |
|
1136 | # update write() as well if you touch this code | |
1129 | self._progclear() |
|
1137 | if not opts.get(r'keepprogressbar', False): | |
|
1138 | self._progclear() | |||
1130 | msg = b''.join(args) |
|
1139 | msg = b''.join(args) | |
1131 |
|
1140 | |||
1132 | # opencode timeblockedsection because this is a critical path |
|
1141 | # opencode timeblockedsection because this is a critical path |
General Comments 0
You need to be logged in to leave comments.
Login now