如何使用 Mercurial 的 LargeFiles 扩展?
我使用 Mercurial 进行游戏开发,并且尝试使用 Mercurial 2.0 中包含的 LargeFiles 扩展来跟踪大型二进制资产。不幸的是,没有关于该扩展的大量文档,所以我不确定人们应该如何使用它。
例如,有什么方法可以安全地清理 .hg/largefiles 目录?如果我正在进行最新修订,并且希望始终能够访问互联网,那么我不需要旧版本的大型文件弄乱存储库,因为这就是使用 LargeFiles 扩展的全部意义。
另外,如何更精细地控制大文件存储的位置?我只能假设它是在运行 hg init 的计算机上的某个位置创建的,但我不知道详细信息。
谢谢!
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.
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.
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.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我没有任何关于如何安全清理
.hg/largefiles
目录的指导。大文件存储
默认情况下,大文件存储似乎存储在以下位置之一:
Windows:
C:\Users\Username\AppData\Local\largefiles
OSX:
/Users/username/Library/Caches/largefiles
Linux:(这是我最好的猜测)
/home/username/largefiles< /代码>
/home/username/.cache/largefiles
用户配置:
但是,可以使用
usercache
设置在全局设置文件中更改此设置如下:注意:这还没有记录。这让我想知道它是否会发生变化。
来源:
largefiles.usercache
设置 - https ://bz.mercurial-scm.org/show_bug.cgi?id=3088I don't have any guidance on how to safely clean out the
.hg/largefiles
directory.Largefiles Store
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: (This is my best guess)
/home/username/largefiles
/home/username/.cache/largefiles
User Configured:
This, however, can be changed in the global settings file using the
usercache
setting as follows:Note: This is not documented yet. This makes me wonder if it is subject to change.
Sources:
largefiles.usercache
setting - https://bz.mercurial-scm.org/show_bug.cgi?id=3088我只是将这篇文章发布给通过搜索进入该线程的其他人。
目前,通过 IIS 托管时,在 Mercurial python 模块中使用大型文件扩展存在问题。请参阅这篇文章如果您在通过 TortoiseHg 将大型变更集(或大型文件)推送到 IIS 时遇到问题。
该问题最终被证明是 Python 2.7.3 中引入的 SSL 处理中的一个错误(可能解释了为什么有这么多人寻找 Mercurial 问题的未解决帖子)。回滚到 Python 2.7.2 让我可以更进一步(在 30Mb 推送而不是 15Mb 时被阻止),但为了正确解决问题,我必须安装 IISCrypto 实用程序可完全禁用通过 SSLv2 的传输。
I'm just posting this for anyone else coming into the thread from a search.
There's currently an issue using the largefiles extension in the mercurial python module when hosted via IIS. See this post if you're encountering issues pushing large changesets (or large files) to IIS via TortoiseHg.
The problem ultimlately turns out to be a bug in SSL processing introduced in Python 2.7.3 (probably explaining why there are so many unresolve posts of people looking for problems with Mercurial). Rolling back to Python 2.7.2 let me get a little further ahead (blocked at 30Mb pushes instead of 15Mb), but to properly solve the problem I had to install the IISCrypto utility to completely disable transfers over SSLv2.