Show More
@@ -229,12 +229,8 b' class server(object):' | |||||
229 | self.repo.ui = self.repo.dirstate._ui = repoui |
|
229 | self.repo.ui = self.repo.dirstate._ui = repoui | |
230 | self.repo.invalidateall() |
|
230 | self.repo.invalidateall() | |
231 |
|
231 | |||
232 | # reset last-print time of progress bar per command |
|
|||
233 | # (progbar is singleton, we don't have to do for all uis) |
|
|||
234 | if copiedui._progbar: |
|
|||
235 | copiedui._progbar.resetstate() |
|
|||
236 |
|
||||
237 | for ui in uis: |
|
232 | for ui in uis: | |
|
233 | ui.resetstate() | |||
238 | # any kind of interaction must use server channels, but chg may |
|
234 | # any kind of interaction must use server channels, but chg may | |
239 | # replace channels by fully functional tty files. so nontty is |
|
235 | # replace channels by fully functional tty files. so nontty is | |
240 | # enforced only if cin is a channel. |
|
236 | # enforced only if cin is a channel. |
@@ -138,6 +138,11 b' class ui(object):' | |||||
138 | def copy(self): |
|
138 | def copy(self): | |
139 | return self.__class__(self) |
|
139 | return self.__class__(self) | |
140 |
|
140 | |||
|
141 | def resetstate(self): | |||
|
142 | """Clear internal state that shouldn't persist across commands""" | |||
|
143 | if self._progbar: | |||
|
144 | self._progbar.resetstate() # reset last-print time of progress bar | |||
|
145 | ||||
141 | def formatter(self, topic, opts): |
|
146 | def formatter(self, topic, opts): | |
142 | return formatter.formatter(self, topic, opts) |
|
147 | return formatter.formatter(self, topic, opts) | |
143 |
|
148 |
General Comments 0
You need to be logged in to leave comments.
Login now