How to use Mercurial's LargeFiles extension?

前端 未结 2 1696
走了就别回头了
走了就别回头了 2021-01-31 05:29

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

相关标签:
2条回答
  • 2021-01-31 05:55

    I 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
    • or /home/username/.cache/largefiles

    User Configured:

    This, however, can be changed in the global settings file using the usercache setting as follows:

    [largefiles]
    usercache = c:\path\to\largefiles\cache\
    

    Note: This is not documented yet. This makes me wonder if it is subject to change.

    Sources:

    • 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
    0 讨论(0)
  • 2021-01-31 06:13

    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.

    0 讨论(0)
提交回复
热议问题