comparison mercurial/commands.py @ 50997:752c5a5b73c6

admin-command: add verify command Start using the 'admin' namespace by adding a 'verify' command. Invocation is 'admin::verify'. The idea is to progressively add more focused checks than the existing verify command. To do so we need an advanced way to express what we want to check. The first check for admin::verify is 'working-copy.dirstate' which has no options, because it was an easy first check to implement, which verifies the integrity of the dirstate. This changeset was created with the help of Franck Bret.
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 25 Jan 2023 15:34:27 +0100
parents 727428c7e1fc
children c17cf2d51ff4 d6e5bec550f1
comparison
equal deleted inserted replaced
50996:cf47b83d8ad0 50997:752c5a5b73c6
7959 7959
7960 Please see https://mercurial-scm.org/wiki/RepositoryCorruption 7960 Please see https://mercurial-scm.org/wiki/RepositoryCorruption
7961 for more information about recovery from corruption of the 7961 for more information about recovery from corruption of the
7962 repository. 7962 repository.
7963 7963
7964 For an alternative UI with a lot more control over the verification
7965 process and better error reporting, try `hg help admin::verify`.
7966
7964 Returns 0 on success, 1 if errors are encountered. 7967 Returns 0 on success, 1 if errors are encountered.
7965 """ 7968 """
7966 level = None 7969 level = None
7967 if opts['full']: 7970 if opts['full']:
7968 level = verifymod.VERIFY_FULL 7971 level = verifymod.VERIFY_FULL