Show More
@@ -52,6 +52,7 b' from . import (' | |||||
52 | verify as verifymod, |
|
52 | verify as verifymod, | |
53 | vfs as vfsmod, |
|
53 | vfs as vfsmod, | |
54 | ) |
|
54 | ) | |
|
55 | from .interfaces import repository as repositorymod | |||
55 | from .utils import ( |
|
56 | from .utils import ( | |
56 | hashutil, |
|
57 | hashutil, | |
57 | stringutil, |
|
58 | stringutil, | |
@@ -1054,7 +1055,7 b' def clone(' | |||||
1054 | # as the only "bad" outcome would be some slowness. That potential |
|
1055 | # as the only "bad" outcome would be some slowness. That potential | |
1055 | # slowness already affect reader. |
|
1056 | # slowness already affect reader. | |
1056 | with destrepo.lock(): |
|
1057 | with destrepo.lock(): | |
1057 |
destrepo.updatecaches( |
|
1058 | destrepo.updatecaches(caches=repositorymod.CACHES_POST_CLONE) | |
1058 | finally: |
|
1059 | finally: | |
1059 | release(srclock, destlock) |
|
1060 | release(srclock, destlock) | |
1060 | if cleandir is not None: |
|
1061 | if cleandir is not None: |
@@ -87,6 +87,11 b' CACHES_ALL = {' | |||||
87 | CACHE_TAGS_SERVED, |
|
87 | CACHE_TAGS_SERVED, | |
88 | } |
|
88 | } | |
89 |
|
89 | |||
|
90 | # the cache to warm by default on simple call | |||
|
91 | # (this is a mutable set to let extension update it) | |||
|
92 | CACHES_POST_CLONE = CACHES_ALL.copy() | |||
|
93 | CACHES_POST_CLONE.discard(CACHE_FILE_NODE_TAGS) | |||
|
94 | ||||
90 |
|
95 | |||
91 | class ipeerconnection(interfaceutil.Interface): |
|
96 | class ipeerconnection(interfaceutil.Interface): | |
92 | """Represents a "connection" to a repository. |
|
97 | """Represents a "connection" to a repository. |
@@ -2758,8 +2758,7 b' class localrepository(object):' | |||||
2758 | if full: |
|
2758 | if full: | |
2759 | caches = repository.CACHES_ALL |
|
2759 | caches = repository.CACHES_ALL | |
2760 | if full == b"post-clone": |
|
2760 | if full == b"post-clone": | |
2761 |
caches = |
|
2761 | caches = repository.CACHES_POST_CLONE | |
2762 | caches.discard(repository.CACHE_FILE_NODE_TAGS) |
|
|||
2763 | else: |
|
2762 | else: | |
2764 | caches = repository.CACHES_DEFAULT |
|
2763 | caches = repository.CACHES_DEFAULT | |
2765 |
|
2764 |
General Comments 0
You need to be logged in to leave comments.
Login now