Mercurial > evolve
annotate tests/test-share.t @ 4487:d972041022cb
evolve: when using evolve, cache files belong into the master repo
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sun, 07 Apr 2019 19:53:53 +0200 |
parents | |
children | 6c0992ce05f7 |
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 |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
3 $ hg init share-base |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
4 $ cd share-base/ |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
5 $ cat >> .hg/hgrc <<EOF |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
6 > [extensions] |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
7 > evolve= |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
8 > share= |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
9 > EOF |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
10 $ 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
|
11 $ cd .. |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
12 $ 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
|
13 $ cd share-client |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
14 $ hg debugupdatecache |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
15 $ test -d .hg/cache |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
16 [1] |
d972041022cb
evolve: when using evolve, cache files belong into the master repo
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
17 $ 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
|
18 |