Show More
@@ -718,6 +718,23 b' class HgRemote(RemoteBase):' | |||||
718 | return output.getvalue() |
|
718 | return output.getvalue() | |
719 |
|
719 | |||
720 | @reraise_safe_exceptions |
|
720 | @reraise_safe_exceptions | |
|
721 | def hg_update_cache(self, wire,): | |||
|
722 | repo = self._factory.repo(wire) | |||
|
723 | baseui = self._factory._create_config(wire['config']) | |||
|
724 | baseui.setconfig('ui', 'quiet', 'false') | |||
|
725 | output = io.BytesIO() | |||
|
726 | ||||
|
727 | def write(data, **unused_kwargs): | |||
|
728 | output.write(data) | |||
|
729 | baseui.write = write | |||
|
730 | ||||
|
731 | repo.ui = baseui | |||
|
732 | with repo.wlock(), repo.lock(): | |||
|
733 | repo.updatecaches(full=True) | |||
|
734 | ||||
|
735 | return output.getvalue() | |||
|
736 | ||||
|
737 | @reraise_safe_exceptions | |||
721 | def tags(self, wire): |
|
738 | def tags(self, wire): | |
722 | cache_on, context_uid, repo_id = self._cache_on(wire) |
|
739 | cache_on, context_uid, repo_id = self._cache_on(wire) | |
723 | @self.region.conditional_cache_on_arguments(condition=cache_on) |
|
740 | @self.region.conditional_cache_on_arguments(condition=cache_on) |
General Comments 0
You need to be logged in to leave comments.
Login now