Debian Codegraph @

tests/test-admin-commands.t

raw
1 Test admin::verify
2
3 $ hg init admin-verify
4 $ cd admin-verify
5
6 Test normal output
7
8 $ hg admin::verify -c dirstate
9 running 1 checks
10 running working-copy.dirstate
11 checking dirstate
12
13 Quiet works
14
15 $ hg admin::verify -c dirstate --quiet
16
17 Test no check no options
18
19 $ hg admin::verify
20 abort: `checks` required
21 [255]
22
23 Test single check without options
24
25 $ hg admin::verify -c working-copy.dirstate
26 running 1 checks
27 running working-copy.dirstate
28 checking dirstate
29
30 Test single check (alias) without options
31
32 $ hg admin::verify -c dirstate
33 running 1 checks
34 running working-copy.dirstate
35 checking dirstate
36
37 Test wrong check name without options
38
39 $ hg admin::verify -c working-copy.dir
40 abort: unknown check working-copy.dir
41 (did you mean working-copy.dirstate?)
42 [10]
43
44 Test wrong alias without options
45
46 $ hg admin::verify -c dir
47 abort: unknown check dir
48 [10]
49