##// END OF EJS Templates
internals: extract frame-based protocol docs to own document...
internals: extract frame-based protocol docs to own document wireprotocol.txt is quite long and difficult to digest. The frame-based protocol is effectively a standalone concept (and could even be used outside of Mercurial). So this commit extracts its docs to a standalone file. The first few paragraphs were rewritten as part of the extraction. Sections headers were adjusted accordingly. Existing referalls in wireprotocol.txt were updated to refer to the new doc / concept, which I've started referring to as `hgrpc`. I'm on the fence as to whether to move the HTTP and SSH transport details to the new doc as well. For now, I'm leaving them in wireprotocol.txt. Differential Revision: https://phab.mercurial-scm.org/D4443

File last commit:

r33355:9087f999 default
r39594:b0e0db15 default
Show More
test-sparse-verbose-json.t
82 lines | 1.7 KiB | text/troff | Tads3Lexer
/ tests / test-sparse-verbose-json.t
Gregory Szorc
sparse: vendor Facebook-developed extension...
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
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --include 'hide' -Tjson
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 [
{
"exclude_rules_added": 0,
"files_added": 0,
"files_conflicting": 0,
"files_dropped": 1,
"include_rules_added": 1,
"profiles_added": 0
}
]
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --clear-rules
$ hg debugsparse --include 'hide' --verbose
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 removing show
Gregory Szorc
sparse: move printing of sparse config changes function into core...
r33355 Profiles changed: 0
Include rules changed: 1
Exclude rules changed: 0
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --reset -Tjson
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 [
{
"exclude_rules_added": 0,
"files_added": 1,
"files_conflicting": 0,
"files_dropped": 0,
"include_rules_added": -1,
"profiles_added": 0
}
]
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --include 'hide'
$ hg debugsparse --reset --verbose
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 getting show
Gregory Szorc
sparse: move printing of sparse config changes function into core...
r33355 Profiles changed: 0
Include rules changed: -1
Exclude rules changed: 0
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289
Verifying that problematic files still allow us to see the deltas when forcing:
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --include 'show*'
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 $ touch hide
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --delete 'show*' --force -Tjson
Gregory Szorc
sparse: vendor Facebook-developed extension...
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
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --include 'show*' --force
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 pending changes to 'hide'
Gregory Szorc
sparse: rename command to debugsparse...
r33293 $ hg debugsparse --delete 'show*' --force --verbose
Gregory Szorc
sparse: vendor Facebook-developed extension...
r33289 pending changes to 'hide'
Gregory Szorc
sparse: move printing of sparse config changes function into core...
r33355 Profiles changed: 0
Include rules changed: -1
Exclude rules changed: 0