我的hgrc配置文件如下:
[extensions]大型文件=
[largefiles]patterns=*.jpg*.png*.bmp*.gif*.mp3*.a*.jar*.psd*.ai*.union*.ttf*.zip*.rar
我通过创建一个文件a.jpg
进行测试,hg添加--large a.jpg
,文件已经在.hglf
中正确创建。我创建了b.jpg
,hg添加了b.jpg
,文件也已在.hglf
中正确创建。
如果我不先添加--large.jpg,这将在某些情况下失败原因
接下来,我创建了子目录,在其中创建了c.jpg文件,hgadd c.jpg,在.hglf中没有创建任何内容。这使得过滤器模式在子目录中之后不再工作。我应该做些什么才能为repo中的所有文件"hgadd*",并正确地筛选出哪个是文本文件,哪个是二进制文件,如.hgrc-config文件中的config。
我想,你必须重新阅读hg help patterns
*.c any name ending in ".c" in the current directory **.c any name ending in ".c" in any subdirectory of the current directory including itself.
并修复您的模式