Mercurial hgignore / subinclude不适用于目录

时间:2016-01-11 21:07:38

标签: mercurial

这个.hgignore似乎并没有为我工作。忽略glob文件,但不包括子包含中指定的内容:

subinclude:SDK.Workspace/.hgignore

subinclude:SDK.Workspace/Application/.hgignore

syntax: glob

*.pyc
*.o
*.d

此版本不支持吗?我使用的是Ubuntu 14.04。

$ hg --version
Mercurial Distributed SCM (version 3.0.1)
Directory: ~/Development/CCL/SDK.Workspace
$ cat .hgignore 
Application.BSP
Hardware
webtalk
SDK.log
RemoteSystemsTempFiles
.metadata
Directory: ~/Development/CCL/SDK.Workspace
$ hg status Hardware
? Hardware/.project
? Hardware/fmm_c5_mb.bit
? Hardware/fmm_c5_mb_bd.bmm
? Hardware/ps7_init.c
? Hardware/ps7_init.h
? Hardware/ps7_init.html
? Hardware/ps7_init.tcl
? Hardware/system.hdf

1 个答案:

答案 0 :(得分:3)