mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
1dcb7966fc
Summary: These are the tests that passed after adding "$ eagerepo". I attempted to turn on eagerepo for all tests that didn't contain "$ eagerepo" or "configure modern". Reviewed By: quark-zju Differential Revision: D44445379 fbshipit-source-id: b283be6d5249f74e11a3205622961e457587e93b
97 lines
2.2 KiB
Perl
97 lines
2.2 KiB
Perl
#debugruntest-compatible
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
# test sparse with --verbose and -T json
|
|
|
|
$ eagerepo
|
|
$ setconfig devel.segmented-changelog-rev-compat=true
|
|
$ enable sparse
|
|
$ hg init myrepo
|
|
$ cd myrepo
|
|
|
|
$ 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
|
|
$ hg sparse --include hide -Tjson
|
|
[
|
|
{
|
|
"exclude_rules_added": 0,
|
|
"files_added": 0,
|
|
"files_conflicting": 0,
|
|
"files_dropped": 1,
|
|
"include_rules_added": 1,
|
|
"profiles_added": 0
|
|
}
|
|
]
|
|
$ hg sparse --clear-rules
|
|
$ hg sparse --include hide --verbose
|
|
calculating actions for refresh
|
|
applying changes to disk (1 actions)
|
|
removing show
|
|
updating dirstate
|
|
Profile # change: 0
|
|
Include rule # change: 1
|
|
Exclude rule # change: 0
|
|
|
|
$ hg sparse reset -Tjson
|
|
[
|
|
{
|
|
"exclude_rules_added": 0,
|
|
"files_added": 1,
|
|
"files_conflicting": 0,
|
|
"files_dropped": 0,
|
|
"include_rules_added": -1,
|
|
"profiles_added": 0
|
|
}
|
|
]
|
|
$ hg sparse --include hide
|
|
$ hg sparse reset --verbose
|
|
calculating actions for refresh
|
|
applying changes to disk (1 actions)
|
|
getting show
|
|
updating dirstate
|
|
Profile # change: 0
|
|
Include rule # change: -1
|
|
Exclude rule # change: 0
|
|
|
|
# Verifying that problematic files still allow us to see the deltas when forcing:
|
|
|
|
$ hg sparse --include 'show*'
|
|
$ touch hide
|
|
$ hg sparse --delete 'show*' --force -Tjson
|
|
pending changes to 'hide'
|
|
[
|
|
{
|
|
"exclude_rules_added": 0,
|
|
"files_added": 0,
|
|
"files_conflicting": 1,
|
|
"files_dropped": 0,
|
|
"include_rules_added": -1,
|
|
"profiles_added": 0
|
|
}
|
|
]
|
|
$ hg sparse --include 'show*' --force
|
|
pending changes to 'hide'
|
|
$ hg sparse --delete 'show*' --force --verbose
|
|
calculating actions for refresh
|
|
verifying no pending changes in newly included files
|
|
pending changes to 'hide'
|
|
applying changes to disk (1 actions)
|
|
updating dirstate
|
|
Profile # change: 0
|
|
Include rule # change: -1
|
|
Exclude rule # change: 0
|