How to use Mercurial's LargeFiles extension?

前端 未结 2 1699
走了就别回头了
走了就别回头了 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

提交回复
热议问题