Show More
@@ -63,6 +63,7 b' from . import (' | |||||
63 | tags as tagsmod, |
|
63 | tags as tagsmod, | |
64 | ui as uimod, |
|
64 | ui as uimod, | |
65 | util, |
|
65 | util, | |
|
66 | verify as verifymod, | |||
66 | wireprotoserver, |
|
67 | wireprotoserver, | |
67 | ) |
|
68 | ) | |
68 | from .utils import ( |
|
69 | from .utils import ( | |
@@ -6147,8 +6148,10 b' def update(ui, repo, node=None, **opts):' | |||||
6147 | ui.warn("(%s)\n" % obsfatemsg) |
|
6148 | ui.warn("(%s)\n" % obsfatemsg) | |
6148 | return ret |
|
6149 | return ret | |
6149 |
|
6150 | |||
6150 | @command('verify', [], helpcategory=command.CATEGORY_MAINTENANCE) |
|
6151 | @command('verify', | |
6151 | def verify(ui, repo): |
|
6152 | [('', 'full', False, 'perform more checks (EXPERIMENTAL)')], | |
|
6153 | helpcategory=command.CATEGORY_MAINTENANCE) | |||
|
6154 | def verify(ui, repo, **opts): | |||
6152 | """verify the integrity of the repository |
|
6155 | """verify the integrity of the repository | |
6153 |
|
6156 | |||
6154 | Verify the integrity of the current repository. |
|
6157 | Verify the integrity of the current repository. | |
@@ -6164,7 +6167,10 b' def verify(ui, repo):' | |||||
6164 |
|
6167 | |||
6165 | Returns 0 on success, 1 if errors are encountered. |
|
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 | @command( |
|
6175 | @command( | |
6170 | 'version', [] + formatteropts, helpcategory=command.CATEGORY_HELP, |
|
6176 | 'version', [] + formatteropts, helpcategory=command.CATEGORY_HELP, |
@@ -23,6 +23,7 b' from . import (' | |||||
23 | ) |
|
23 | ) | |
24 |
|
24 | |||
25 | VERIFY_DEFAULT = 0 |
|
25 | VERIFY_DEFAULT = 0 | |
|
26 | VERIFY_FULL = 1 | |||
26 |
|
27 | |||
27 | def verify(repo, level=None): |
|
28 | def verify(repo, level=None): | |
28 | with repo.lock(): |
|
29 | with repo.lock(): |
@@ -347,7 +347,7 b' Show all commands + options' | |||||
347 | tip: patch, git, style, template |
|
347 | tip: patch, git, style, template | |
348 | unbundle: update |
|
348 | unbundle: update | |
349 | update: clean, check, merge, date, rev, tool |
|
349 | update: clean, check, merge, date, rev, tool | |
350 | verify: |
|
350 | verify: full | |
351 | version: template |
|
351 | version: template | |
352 |
|
352 | |||
353 | $ hg init a |
|
353 | $ hg init a |
@@ -615,6 +615,8 b' Test command without options' | |||||
615 |
|
615 | |||
616 | Returns 0 on success, 1 if errors are encountered. |
|
616 | Returns 0 on success, 1 if errors are encountered. | |
617 |
|
617 | |||
|
618 | options: | |||
|
619 | ||||
618 | (some details hidden, use --verbose to show complete help) |
|
620 | (some details hidden, use --verbose to show complete help) | |
619 |
|
621 | |||
620 | $ hg help diff |
|
622 | $ hg help diff |
General Comments 0
You need to be logged in to leave comments.
Login now