Show More
@@ -63,6 +63,7 b' from . import (' | |||
|
63 | 63 | tags as tagsmod, |
|
64 | 64 | ui as uimod, |
|
65 | 65 | util, |
|
66 | verify as verifymod, | |
|
66 | 67 | wireprotoserver, |
|
67 | 68 | ) |
|
68 | 69 | from .utils import ( |
@@ -6147,8 +6148,10 b' def update(ui, repo, node=None, **opts):' | |||
|
6147 | 6148 | ui.warn("(%s)\n" % obsfatemsg) |
|
6148 | 6149 | return ret |
|
6149 | 6150 | |
|
6150 | @command('verify', [], helpcategory=command.CATEGORY_MAINTENANCE) | |
|
6151 | def verify(ui, repo): | |
|
6151 | @command('verify', | |
|
6152 | [('', 'full', False, 'perform more checks (EXPERIMENTAL)')], | |
|
6153 | helpcategory=command.CATEGORY_MAINTENANCE) | |
|
6154 | def verify(ui, repo, **opts): | |
|
6152 | 6155 | """verify the integrity of the repository |
|
6153 | 6156 | |
|
6154 | 6157 | Verify the integrity of the current repository. |
@@ -6164,7 +6167,10 b' def verify(ui, repo):' | |||
|
6164 | 6167 | |
|
6165 | 6168 | Returns 0 on success, 1 if errors are encountered. |
|
6166 | 6169 | """ |
|
6167 | return hg.verify(repo) | |
|
6170 | level = None | |
|
6171 | if opts['full']: | |
|
6172 | level = verifymod.VERIFY_FULL | |
|
6173 | return hg.verify(repo, level) | |
|
6168 | 6174 | |
|
6169 | 6175 | @command( |
|
6170 | 6176 | 'version', [] + formatteropts, helpcategory=command.CATEGORY_HELP, |
@@ -23,6 +23,7 b' from . import (' | |||
|
23 | 23 | ) |
|
24 | 24 | |
|
25 | 25 | VERIFY_DEFAULT = 0 |
|
26 | VERIFY_FULL = 1 | |
|
26 | 27 | |
|
27 | 28 | def verify(repo, level=None): |
|
28 | 29 | with repo.lock(): |
General Comments 0
You need to be logged in to leave comments.
Login now