caching - 无论如何要清理mercurial缓存

标签 caching mercurial

目前 .hgcache 文件夹占用了我 30GB 的磁盘空间。我正在使用只有 256GB 磁盘的 MAC 书,另一方面 Xcode 经常吃光所有磁盘,只是想知道有什么方法可以从 hgcache 文件夹中释放一些磁盘空间。

最佳答案

来自 official documentation on caching :

We have a few on-disk caches, which are stored in .hg/cache. These include the branch cache and the tag cache. Notably, these caches are designed to be 'pure', in the sense that Mercurial can operate without them. If Mercurial is unable to read or write them for some reason, it will continue to operate but more slowly.



通常,很容易发现 .hg/cache 中的哪些文件与分支相关,哪些与标签相关。 (如果您看到“rbc”指的是“revbranchcache”。)

如果 .hg/cache 中有与分支或缓存无关的文件或目录,那么小心删除它们可能是个好主意。

关于caching - 无论如何要清理mercurial缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35781593/

相关文章:

wordpress - Nginx Fastcgi_cache性能——磁盘缓存VS tmpfs缓存VS静态文件

url - 使用 Mercurial 路径作为 URL 的一部分

mercurial - Mercurial hgsubversion 扩展使 SVN Externals 表现得像 Hg 子存储库

node.js - 在 Node.js/Express 中,如何为重定向禁用浏览器缓存?

java - 为什么我的 Guava 缓存不断覆盖项目?

javascript - 强制重新加载图像并保留 url

python - Mercurial 预提交 Hook : How to hook to python program in current directory?

django - Mercurial:保持 2 个分支同步但具有某些持久的差异?

mercurial - 如何使用不同的用户名启动新的 Mercurial 项目?

c# - 数据集更新时更新缓存