diff mercurial/interfaces/repository.py @ 47299:7edaf91c7886

updatecaches: use the `caches` argument instead of a special `full` value After a clone we want to update most cachem, but not exactly all of them. We can now cleanly express this. Differential Revision: https://phab.mercurial-scm.org/D10730
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 17 May 2021 15:42:18 +0200
parents d1589957fdcb
children c514936d92b4
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py	Mon May 17 15:27:29 2021 +0200
+++ b/mercurial/interfaces/repository.py	Mon May 17 15:42:18 2021 +0200
@@ -87,6 +87,11 @@
     CACHE_TAGS_SERVED,
 }
 
+# the cache to warm by default on simple call
+# (this is a mutable set to let extension update it)
+CACHES_POST_CLONE = CACHES_ALL.copy()
+CACHES_POST_CLONE.discard(CACHE_FILE_NODE_TAGS)
+
 
 class ipeerconnection(interfaceutil.Interface):
     """Represents a "connection" to a repository.