##// END OF EJS Templates
ui: option to preserve the progress bar...
Joerg Sonnenberger -
r43559:82879e06 default
parent child Browse files
Show More
@@ -1072,6 +1072,13 b' class ui(object):'
1072 1072 Label names take the form of "topic.type". For example, ui.debug()
1073 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 1082 When labeling output for a specific command, a label of
1076 1083 "cmdname.type" is recommended. For example, status issues
1077 1084 a label of "status.modified" for modified files.
@@ -1087,7 +1094,8 b' class ui(object):'
1087 1094 self._buffers[-1].extend(args)
1088 1095 return
1089 1096
1090 # inliend _writenobuf() for speed
1097 # inlined _writenobuf() for speed
1098 if not opts.get(r'keepprogressbar', False):
1091 1099 self._progclear()
1092 1100 msg = b''.join(args)
1093 1101
@@ -1126,6 +1134,7 b' class ui(object):'
1126 1134
1127 1135 def _writenobuf(self, dest, *args, **opts):
1128 1136 # update write() as well if you touch this code
1137 if not opts.get(r'keepprogressbar', False):
1129 1138 self._progclear()
1130 1139 msg = b''.join(args)
1131 1140
General Comments 0
You need to be logged in to leave comments. Login now