test-sparse-verbose-json.t
82 lines
| 1.7 KiB
| text/troff
|
Tads3Lexer
/ tests / test-sparse-verbose-json.t
Gregory Szorc
|
r33289 | test sparse with --verbose and -T json | ||
$ hg init myrepo | ||||
$ cd myrepo | ||||
$ cat > .hg/hgrc <<EOF | ||||
> [extensions] | ||||
> sparse= | ||||
> strip= | ||||
> EOF | ||||
$ echo a > show | ||||
$ echo x > hide | ||||
$ hg ci -Aqm 'initial' | ||||
$ echo b > show | ||||
$ echo y > hide | ||||
$ echo aa > show2 | ||||
$ echo xx > hide2 | ||||
$ hg ci -Aqm 'two' | ||||
Verify basic --include and --reset | ||||
$ hg up -q 0 | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include 'hide' -Tjson | ||
Gregory Szorc
|
r33289 | [ | ||
{ | ||||
"exclude_rules_added": 0, | ||||
"files_added": 0, | ||||
"files_conflicting": 0, | ||||
"files_dropped": 1, | ||||
"include_rules_added": 1, | ||||
"profiles_added": 0 | ||||
} | ||||
] | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --clear-rules | ||
$ hg debugsparse --include 'hide' --verbose | ||||
Gregory Szorc
|
r33289 | removing show | ||
Gregory Szorc
|
r33355 | Profiles changed: 0 | ||
Include rules changed: 1 | ||||
Exclude rules changed: 0 | ||||
Gregory Szorc
|
r33289 | |||
Gregory Szorc
|
r33293 | $ hg debugsparse --reset -Tjson | ||
Gregory Szorc
|
r33289 | [ | ||
{ | ||||
"exclude_rules_added": 0, | ||||
"files_added": 1, | ||||
"files_conflicting": 0, | ||||
"files_dropped": 0, | ||||
"include_rules_added": -1, | ||||
"profiles_added": 0 | ||||
} | ||||
] | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include 'hide' | ||
$ hg debugsparse --reset --verbose | ||||
Gregory Szorc
|
r33289 | getting show | ||
Gregory Szorc
|
r33355 | Profiles changed: 0 | ||
Include rules changed: -1 | ||||
Exclude rules changed: 0 | ||||
Gregory Szorc
|
r33289 | |||
Verifying that problematic files still allow us to see the deltas when forcing: | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include 'show*' | ||
Gregory Szorc
|
r33289 | $ touch hide | ||
Gregory Szorc
|
r33293 | $ hg debugsparse --delete 'show*' --force -Tjson | ||
Gregory Szorc
|
r33289 | pending changes to 'hide' | ||
[ | ||||
{ | ||||
"exclude_rules_added": 0, | ||||
"files_added": 0, | ||||
"files_conflicting": 1, | ||||
"files_dropped": 0, | ||||
"include_rules_added": -1, | ||||
"profiles_added": 0 | ||||
} | ||||
] | ||||
Gregory Szorc
|
r33293 | $ hg debugsparse --include 'show*' --force | ||
Gregory Szorc
|
r33289 | pending changes to 'hide' | ||
Gregory Szorc
|
r33293 | $ hg debugsparse --delete 'show*' --force --verbose | ||
Gregory Szorc
|
r33289 | pending changes to 'hide' | ||
Gregory Szorc
|
r33355 | Profiles changed: 0 | ||
Include rules changed: -1 | ||||
Exclude rules changed: 0 | ||||