Mercurial > evolve
annotate tests/test-share.t @ 5671:8c5f2c37b911
strip: remove experimental.prunestrip option
marmoute decided to drop it because it's "neither documented nor a good idea".
This extensions was assemble to deal with Facebook willingness to check `hg
strip` semantic for its user. Changing `hg strip` semantic is overall a pretty
bad idea, because `stripping` is a specific operation, that is problematic in
distributed version control but have a narrow set of valid usecase (eg:
maintenance). Diverting user away from `prune` in favor of a modified `strip` is
a bad idea, because it mask the legitimate `strip` usage and introduce confusion
in user heads, The verb is not appropriate and the behavior of `prunestrip` does
not match the one of vanillia `strip`.
Facebook is no longer using this, and the lack of documentation is a good hint
that nobody else is. So lets drop it.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 27 Nov 2020 09:47:01 +0800 |
parents | 6c0992ce05f7 |
children |
rev | line source |
---|---|
4487
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
1 Test that share-clones use the cache in the original repository. |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
2 |
4488
6c0992ce05f7
compat: drop getcachevfs, repo.cachevfs is supported in hg 4.4
Joerg Sonnenberger <joerg@bec.de>
parents:
4487
diff
changeset
|
3 $ . $TESTDIR/testlib/common.sh |
6c0992ce05f7
compat: drop getcachevfs, repo.cachevfs is supported in hg 4.4
Joerg Sonnenberger <joerg@bec.de>
parents:
4487
diff
changeset
|
4 |
4487
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
5 $ hg init share-base |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
6 $ cd share-base/ |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
7 $ cat >> .hg/hgrc <<EOF |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
8 > [extensions] |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
9 > evolve= |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
10 > share= |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
11 > EOF |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
12 $ hg debugbuilddag .+3:branchpoint+4*branchpoint+2 |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
13 $ cd .. |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
14 $ hg --config extensions.share= share -U share-base share-client |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
15 $ cd share-client |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
16 $ hg debugupdatecache |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
17 $ test -d .hg/cache |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
18 [1] |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
19 $ test -d ../share-base/.hg/cache |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
20 |