comparison 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
comparison
equal deleted inserted replaced
50996:cf47b83d8ad0 50997:752c5a5b73c6
127 import import an ordered set of patches 127 import import an ordered set of patches
128 unbundle apply one or more bundle files 128 unbundle apply one or more bundle files
129 129
130 Repository maintenance: 130 Repository maintenance:
131 131
132 admin::verify
133 verify the integrity of the repository
132 manifest output the current or given revision of the project manifest 134 manifest output the current or given revision of the project manifest
133 recover roll back an interrupted transaction 135 recover roll back an interrupted transaction
134 verify verify the integrity of the repository 136 verify verify the integrity of the repository
135 137
136 Help: 138 Help:
258 import import an ordered set of patches 260 import import an ordered set of patches
259 unbundle apply one or more bundle files 261 unbundle apply one or more bundle files
260 262
261 Repository maintenance: 263 Repository maintenance:
262 264
265 admin::verify
266 verify the integrity of the repository
263 manifest output the current or given revision of the project manifest 267 manifest output the current or given revision of the project manifest
264 recover roll back an interrupted transaction 268 recover roll back an interrupted transaction
265 verify verify the integrity of the repository 269 verify verify the integrity of the repository
266 270
267 Help: 271 Help:
602 Test ambiguous command help 606 Test ambiguous command help
603 607
604 $ hg help ad 608 $ hg help ad
605 list of commands: 609 list of commands:
606 610
611 Working directory management:
612
607 add add the specified files on the next commit 613 add add the specified files on the next commit
608 addremove add all new files, delete all missing files 614 addremove add all new files, delete all missing files
615
616 Repository maintenance:
617
618 admin::verify
619 verify the integrity of the repository
609 620
610 (use 'hg help -v ad' to show built-in aliases and global options) 621 (use 'hg help -v ad' to show built-in aliases and global options)
611 622
612 Test command without options 623 Test command without options
613 624
623 manifest, and tracked files, as well as the integrity of their crosslinks 634 manifest, and tracked files, as well as the integrity of their crosslinks
624 and indices. 635 and indices.
625 636
626 Please see https://mercurial-scm.org/wiki/RepositoryCorruption for more 637 Please see https://mercurial-scm.org/wiki/RepositoryCorruption for more
627 information about recovery from corruption of the repository. 638 information about recovery from corruption of the repository.
639
640 For an alternative UI with a lot more control over the verification
641 process and better error reporting, try 'hg help admin::verify'.
628 642
629 Returns 0 on success, 1 if errors are encountered. 643 Returns 0 on success, 1 if errors are encountered.
630 644
631 options: 645 options:
632 646
2648 </a> 2662 </a>
2649 </td><td> 2663 </td><td>
2650 add all new files, delete all missing files 2664 add all new files, delete all missing files
2651 </td></tr> 2665 </td></tr>
2652 <tr><td> 2666 <tr><td>
2667 <a href="/help/admin::verify">
2668 admin::verify
2669 </a>
2670 </td><td>
2671 verify the integrity of the repository
2672 </td></tr>
2673 <tr><td>
2653 <a href="/help/archive"> 2674 <a href="/help/archive">
2654 archive 2675 archive
2655 </a> 2676 </a>
2656 </td><td> 2677 </td><td>
2657 create an unversioned archive of a repository revision 2678 create an unversioned archive of a repository revision