sapling/tests/test-fb-hgext-treemanifest-sparse.t
Kostia Balytskyi 650abf4b9e tests: stop importing sparse from an explicit python file
Summary:
Importing anything from python files with explicit breaks embedded
aproach we use on Windows.

For one of the tests, I did add `hg debugshell -c "from hgext import sparse;
print sparse.__file__` just to make sure the same file is used in practice.

Reviewed By: singhsrb

Differential Revision: D13258984

fbshipit-source-id: 4c86e1dccfd4f525a14019dc4b9586d798f2bffe
2018-11-30 02:19:16 -08:00

53 lines
1015 B
Perl

test interaction between sparse and treemanifest (sparse file listing)
$ cat >> $HGRCPATH <<EOF
> [extensions]
> sparse=
> treemanifest=
> [treemanifest]
> treeonly = True
> [remotefilelog]
> reponame = master
> cachepath = $PWD/hgcache
> EOF
Setup the repository
$ hg init myrepo
$ cd myrepo
$ touch show
$ touch hide
$ mkdir -p subdir/foo/spam subdir/bar/ham hiddensub/foo hiddensub/bar
$ touch subdir/foo/spam/show
$ touch subdir/bar/ham/hide
$ touch hiddensub/foo/spam
$ touch hiddensub/bar/ham
$ hg add .
adding hiddensub/bar/ham
adding hiddensub/foo/spam
adding hide
adding show
adding subdir/bar/ham/hide
adding subdir/foo/spam/show
$ hg commit -m 'Init'
$ hg sparse include show
$ hg sparse exclude hide
$ hg sparse include subdir
$ hg sparse exclude subdir/foo
Test cwd
$ hg sparse cwd
- hiddensub
- hide
show
subdir
$ cd subdir
$ hg sparse cwd
bar
- foo
$ hg sparse include foo
$ hg sparse cwd
bar
foo