sapling/eden/scm/tests/test-update-over-sparse-profile-change.t
Andrey Chursin fe87743d94 tests: disable chmod part of .t tests on widnows
Summary: Build was broken because there is no exec flag on windows

Reviewed By: DurhamG

Differential Revision: D32179255

fbshipit-source-id: 88c79d36de353e67a4cee4d8037beef4e8b32a25
2021-11-04 13:04:49 -07:00

58 lines
870 B
Perl

#chg-compatible
$ setconfig experimental.nativecheckout=true
$ newserver server
test sparse
$ newremoterepo myrepo
$ enable sparse
$ echo a > show
$ echo a > show2
$ echo c > show3
$ echo x > hide
$ cat >> .sparse-include <<EOF
> [include]
> show
> .sparse-include
> EOF
$ hg add .sparse-include
$ hg ci -Aqm 'initial'
$ hg sparse enable .sparse-include
$ ls
show
$ cat >> .sparse-include <<EOF
> [include]
> show
> show2
> EOF
$ hg ci -Am 'second'
$ hg up -q 'desc(initial)'
$ ls
show
$ hg up -q 'desc(second)'
$ ls
show
show2
#if no-windows
$ cat >> .sparse-include <<EOF
> [include]
> show
> show2
> show3
> EOF
$ hg ci -m "third"
$ chmod +x show3
$ hg ci -m "fourth"
$ hg up -q 'desc(second)'
$ ls
show
show2
$ hg up -q 'desc(fourth)'
$ ls
show
show2
show3
#endif