mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
c8871fd796
Summary: This diff integrates CheckoutPlan::with_sparse_profile_change into python code It also updates test-update-over-sparse-profile-change.t to use native checkout, as this test now passes Reviewed By: DurhamG Differential Revision: D26670414 fbshipit-source-id: 73011217b4a0d80ef643b778cdaf75bbada5dcf2
43 lines
713 B
Perl
43 lines
713 B
Perl
#chg-compatible
|
|
#testcases treematcher non-treematcher
|
|
$ setconfig experimental.nativecheckout=true
|
|
$ newserver server
|
|
|
|
test sparse
|
|
|
|
$ newremoterepo myrepo
|
|
$ enable sparse
|
|
#if treematcher
|
|
$ cat >> .hg/hgrc <<EOF
|
|
> [experimental]
|
|
> treematcher = False
|
|
> EOF
|
|
#endif
|
|
|
|
$ echo a > show
|
|
$ echo a > show2
|
|
$ 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
|