Mercurial > hg
comparison tests/test-sparse-verbose-json.t @ 33293:c9cbf4de27ba
sparse: rename command to debugsparse
Sparse checkout is still highly experimental and not protected
by BC guarantees yet. We also haven't had a discussion on the UX.
To discourage use, we rename the sparse command to debugsparse.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 01 Jul 2017 10:29:27 -0700 |
parents | abd7dedbaa36 |
children | 9087f9997f42 |
comparison
equal
deleted
inserted
replaced
33292:1e9fd2c35ae3 | 33293:c9cbf4de27ba |
---|---|
19 $ hg ci -Aqm 'two' | 19 $ hg ci -Aqm 'two' |
20 | 20 |
21 Verify basic --include and --reset | 21 Verify basic --include and --reset |
22 | 22 |
23 $ hg up -q 0 | 23 $ hg up -q 0 |
24 $ hg sparse --include 'hide' -Tjson | 24 $ hg debugsparse --include 'hide' -Tjson |
25 [ | 25 [ |
26 { | 26 { |
27 "exclude_rules_added": 0, | 27 "exclude_rules_added": 0, |
28 "files_added": 0, | 28 "files_added": 0, |
29 "files_conflicting": 0, | 29 "files_conflicting": 0, |
30 "files_dropped": 1, | 30 "files_dropped": 1, |
31 "include_rules_added": 1, | 31 "include_rules_added": 1, |
32 "profiles_added": 0 | 32 "profiles_added": 0 |
33 } | 33 } |
34 ] | 34 ] |
35 $ hg sparse --clear-rules | 35 $ hg debugsparse --clear-rules |
36 $ hg sparse --include 'hide' --verbose | 36 $ hg debugsparse --include 'hide' --verbose |
37 removing show | 37 removing show |
38 Profile # change: 0 | 38 Profile # change: 0 |
39 Include rule # change: 1 | 39 Include rule # change: 1 |
40 Exclude rule # change: 0 | 40 Exclude rule # change: 0 |
41 | 41 |
42 $ hg sparse --reset -Tjson | 42 $ hg debugsparse --reset -Tjson |
43 [ | 43 [ |
44 { | 44 { |
45 "exclude_rules_added": 0, | 45 "exclude_rules_added": 0, |
46 "files_added": 1, | 46 "files_added": 1, |
47 "files_conflicting": 0, | 47 "files_conflicting": 0, |
48 "files_dropped": 0, | 48 "files_dropped": 0, |
49 "include_rules_added": -1, | 49 "include_rules_added": -1, |
50 "profiles_added": 0 | 50 "profiles_added": 0 |
51 } | 51 } |
52 ] | 52 ] |
53 $ hg sparse --include 'hide' | 53 $ hg debugsparse --include 'hide' |
54 $ hg sparse --reset --verbose | 54 $ hg debugsparse --reset --verbose |
55 getting show | 55 getting show |
56 Profile # change: 0 | 56 Profile # change: 0 |
57 Include rule # change: -1 | 57 Include rule # change: -1 |
58 Exclude rule # change: 0 | 58 Exclude rule # change: 0 |
59 | 59 |
60 Verifying that problematic files still allow us to see the deltas when forcing: | 60 Verifying that problematic files still allow us to see the deltas when forcing: |
61 | 61 |
62 $ hg sparse --include 'show*' | 62 $ hg debugsparse --include 'show*' |
63 $ touch hide | 63 $ touch hide |
64 $ hg sparse --delete 'show*' --force -Tjson | 64 $ hg debugsparse --delete 'show*' --force -Tjson |
65 pending changes to 'hide' | 65 pending changes to 'hide' |
66 [ | 66 [ |
67 { | 67 { |
68 "exclude_rules_added": 0, | 68 "exclude_rules_added": 0, |
69 "files_added": 0, | 69 "files_added": 0, |
71 "files_dropped": 0, | 71 "files_dropped": 0, |
72 "include_rules_added": -1, | 72 "include_rules_added": -1, |
73 "profiles_added": 0 | 73 "profiles_added": 0 |
74 } | 74 } |
75 ] | 75 ] |
76 $ hg sparse --include 'show*' --force | 76 $ hg debugsparse --include 'show*' --force |
77 pending changes to 'hide' | 77 pending changes to 'hide' |
78 $ hg sparse --delete 'show*' --force --verbose | 78 $ hg debugsparse --delete 'show*' --force --verbose |
79 pending changes to 'hide' | 79 pending changes to 'hide' |
80 Profile # change: 0 | 80 Profile # change: 0 |
81 Include rule # change: -1 | 81 Include rule # change: -1 |
82 Exclude rule # change: 0 | 82 Exclude rule # change: 0 |