mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
fe87743d94
Summary: Build was broken because there is no exec flag on windows Reviewed By: DurhamG Differential Revision: D32179255 fbshipit-source-id: 88c79d36de353e67a4cee4d8037beef4e8b32a25
58 lines
870 B
Perl
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
|
|
|