问题描述
我使用Mercurial进行游戏开发,并且尝试使用Mercurial 2.0中包含的LargeFiles扩展来跟踪大型二进制资产.不幸的是,该扩展上没有很多文档,所以我不确定人们应该如何使用它.
I use Mercurial for game development, and I'm trying to use the LargeFiles extension included in Mercurial 2.0 to keep track of large binary assets. Unfortunately there isn't a whole lot of documentation on the extension, so I'm not sure how people are expected to use it.
例如,有什么方法可以安全地清除.hg/largefiles目录?如果我正在使用最新版本,并且希望始终可以访问Internet,那么我就不需要旧版本的大文件来打乱存储库,因为这就是使用LargeFiles扩展的全部目的.
For example, is there any way to safely clean out the .hg/largefiles directory? If I'm on the tip revision, and expect to always have internet access, then I don't need the old versions of largefiles cluttering up the repository, since that's the whole point of using the LargeFiles extension.
此外,我如何对大文件存储位置进行更细粒度的控制?我只能假定它是在运行hg init
的计算机上的某个位置创建的,但是我不知道其详细信息.
Also, how do I have more fine-grained control over where the largefile store is? I can only assume that it's created somewhere on the computer that ran hg init
, but I have no idea about the details.
谢谢!
推荐答案
对于如何安全清除.hg/largefiles
目录,我没有任何指导.
I don't have any guidance on how to safely clean out the .hg/largefiles
directory.
默认情况下,大文件存储似乎存储在以下位置之一:
The largefiles store seems to be stored, by default, at the one of following locations:
Windows: C:\Users\Username\AppData\Local\largefiles
OSX: /Users/username/Library/Caches/largefiles
Linux:(这是我的最佳猜测)
Linux: (This is my best guess)
-
/home/username/largefiles
- 或
/home/username/.cache/largefiles
/home/username/largefiles
- or
/home/username/.cache/largefiles
用户配置:
但是,可以使用usercache
设置在全局设置文件中对此进行更改,如下所示:
This, however, can be changed in the global settings file using the usercache
setting as follows:
[largefiles]
usercache = c:\path\to\largefiles\cache\
注意:这尚未记录.这使我想知道它是否会更改.
- 大文件扩展文档
- 用户缓存路径- https://www.mercurial-scm.org/repo/hg/file/41453d55b481/hgext/largefiles/lfutil.py (第84-103行)
- 未公开的
largefiles.usercache
设置- https://bz.mercurial-scm .org/show_bug.cgi?id = 3088
- Largefiles Extension Documentation
- User cache paths - https://www.mercurial-scm.org/repo/hg/file/41453d55b481/hgext/largefiles/lfutil.py (lines 84-103)
- Undocumented
largefiles.usercache
setting - https://bz.mercurial-scm.org/show_bug.cgi?id=3088
这篇关于如何使用Mercurial的LargeFiles扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!