Show More
@@ -25,6 +25,7 b' from hgext import largefiles, rebase' | |||||
25 | from hgext.strip import strip as hgext_strip |
|
25 | from hgext.strip import strip as hgext_strip | |
26 | from mercurial import commands |
|
26 | from mercurial import commands | |
27 | from mercurial import unionrepo |
|
27 | from mercurial import unionrepo | |
|
28 | from mercurial import verify | |||
28 |
|
29 | |||
29 | from vcsserver import exceptions |
|
30 | from vcsserver import exceptions | |
30 | from vcsserver.base import RepoFactory, obfuscate_qs, raise_from_original |
|
31 | from vcsserver.base import RepoFactory, obfuscate_qs, raise_from_original | |
@@ -586,6 +587,21 b' class HgRemote(object):' | |||||
586 | repo.baseui, repo, ctx.node(), update=update, backup=backup) |
|
587 | repo.baseui, repo, ctx.node(), update=update, backup=backup) | |
587 |
|
588 | |||
588 | @reraise_safe_exceptions |
|
589 | @reraise_safe_exceptions | |
|
590 | def verify(self, wire,): | |||
|
591 | repo = self._factory.repo(wire) | |||
|
592 | baseui = self._factory._create_config(wire['config']) | |||
|
593 | baseui.setconfig('ui', 'quiet', 'false') | |||
|
594 | output = io.BytesIO() | |||
|
595 | ||||
|
596 | def write(data, **unused_kwargs): | |||
|
597 | output.write(data) | |||
|
598 | baseui.write = write | |||
|
599 | ||||
|
600 | repo.ui = baseui | |||
|
601 | verify.verify(repo) | |||
|
602 | return output.getvalue() | |||
|
603 | ||||
|
604 | @reraise_safe_exceptions | |||
589 | def tag(self, wire, name, revision, message, local, user, |
|
605 | def tag(self, wire, name, revision, message, local, user, | |
590 | tag_time, tag_timezone): |
|
606 | tag_time, tag_timezone): | |
591 | repo = self._factory.repo(wire) |
|
607 | repo = self._factory.repo(wire) |
General Comments 0
You need to be logged in to leave comments.
Login now