This instance will be upgraded to Heptapod 0.25.0 (final) on 2021-09-22 at 15:00 UTC+2 (a few minutes of down time)

Commit a297c57c authored by Pierre-Yves David's avatar Pierre-Yves David 🐙
Browse files

verify: introduce an experimental --full flag

The flag currently has no effect, see next changeset for details. We introduce
the flag as experimental to keep the freedom of changing our mind on the final

Note: this patch highlight a small but in `hg help`. An option section is
generated even if no option are visible.
parent 57539e5ea2e0
......@@ -63,6 +63,7 @@ from . import (
tags as tagsmod,
ui as uimod,
verify as verifymod,
from .utils import (
......@@ -6147,8 +6148,10 @@ def update(ui, repo, node=None, **opts):
ui.warn("(%s)\n" % obsfatemsg)
return ret
@command('verify', [], helpcategory=command.CATEGORY_MAINTENANCE)
def verify(ui, repo):
[('', 'full', False, 'perform more checks (EXPERIMENTAL)')],
def verify(ui, repo, **opts):
"""verify the integrity of the repository
Verify the integrity of the current repository.
......@@ -6164,7 +6167,10 @@ def verify(ui, repo):
Returns 0 on success, 1 if errors are encountered.
return hg.verify(repo)
level = None
if opts['full']:
level = verifymod.VERIFY_FULL
return hg.verify(repo, level)
'version', [] + formatteropts, helpcategory=command.CATEGORY_HELP,
......@@ -23,6 +23,7 @@ from . import (
def verify(repo, level=None):
with repo.lock():
......@@ -347,7 +347,7 @@ Show all commands + options
tip: patch, git, style, template
unbundle: update
update: clean, check, merge, date, rev, tool
verify: full
version: template
$ hg init a
......@@ -615,6 +615,8 @@ Test command without options
Returns 0 on success, 1 if errors are encountered.
(some details hidden, use --verbose to show complete help)
$ hg help diff
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment