Mercurial > hg-stable
diff tests/test-help.t @ 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 | 7e5be4a7cda7 |
children | e2dfa403452d |
line wrap: on
line diff
--- a/tests/test-help.t Wed Sep 13 12:25:51 2023 +0200 +++ b/tests/test-help.t Wed Jan 25 15:34:27 2023 +0100 @@ -129,6 +129,8 @@ Repository maintenance: + admin::verify + verify the integrity of the repository manifest output the current or given revision of the project manifest recover roll back an interrupted transaction verify verify the integrity of the repository @@ -260,6 +262,8 @@ Repository maintenance: + admin::verify + verify the integrity of the repository manifest output the current or given revision of the project manifest recover roll back an interrupted transaction verify verify the integrity of the repository @@ -604,9 +608,16 @@ $ hg help ad list of commands: + Working directory management: + add add the specified files on the next commit addremove add all new files, delete all missing files + Repository maintenance: + + admin::verify + verify the integrity of the repository + (use 'hg help -v ad' to show built-in aliases and global options) Test command without options @@ -626,6 +637,9 @@ Please see https://mercurial-scm.org/wiki/RepositoryCorruption for more information about recovery from corruption of the repository. + For an alternative UI with a lot more control over the verification + process and better error reporting, try 'hg help admin::verify'. + Returns 0 on success, 1 if errors are encountered. options: @@ -2650,6 +2664,13 @@ add all new files, delete all missing files </td></tr> <tr><td> + <a href="/help/admin::verify"> + admin::verify + </a> + </td><td> + verify the integrity of the repository + </td></tr> + <tr><td> <a href="/help/archive"> archive </a>