Accurev:如何忽略目录的内容而不是目录
我有一个“project”目录,其中有一个 .aignore 文件,其中包含:
out/*
“project”目录包含签入的“out”目录。但我想忽略“out”目录树中的任何内容。
上面的好像不行。什么是正确的语法?
谢谢。
I have a "project" directory which has an .acignore file containing:
out/*
The "project" directory contains the checked-in "out" directory. But i want to ignore anything in the "out" directory tree.
The above doesn't seem to work. What's the right syntax?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该语法实际上是正确的。我的猜测是“out”目录的内容的状态为(成员)。 ACCURV_IGNORE_ELEMS 和 .aignore 不会忽略已在 AccuRev 控制下的文件。请注意,在此示例中,“Out”目录中的文件还不是成员,因此不会显示在(外部)搜索请求中:
C:\demo\ws\Twins_SP1_mauer\WebApp>dir
04/10/2010 04:49 PM 7 .acignore
04/10/2010 04:44 PM 输出
C:\demo\ws\Twins_SP1_mauer\WebApp>cat .acignore
Out/*
C:\demo\ws\Twins_SP1_mauer\WebApp>dir Out
04/10/2010 04:43 PM 0 file1.txt
04/10/2010 04:44 PM 0 file2.txt
C:\demo\ws\Twins_SP1_mauer\WebApp>accurev stat -x
.\WebApp.aignore(外部)
That syntax is actually correct. My guess is that the contents of the "out" directory have status of (member). ACCUREV_IGNORE_ELEMS and .acignore won't ignore files that are already under AccuRev control. Note that in this example, the files in my "Out" directory are not already member, so don't show up in the (external) search request:
C:\demo\ws\Twins_SP1_mauer\WebApp>dir
04/10/2010 04:49 PM 7 .acignore
04/10/2010 04:44 PM Out
C:\demo\ws\Twins_SP1_mauer\WebApp>cat .acignore
Out/*
C:\demo\ws\Twins_SP1_mauer\WebApp>dir Out
04/10/2010 04:43 PM 0 file1.txt
04/10/2010 04:44 PM 0 file2.txt
C:\demo\ws\Twins_SP1_mauer\WebApp>accurev stat -x
.\WebApp.acignore (external)
Accurev 的过滤仅用于过滤(外部)列表中出现的内容,因此如果已经添加了内容,则不会将其过滤掉。
.acignore 文件无法指定递归模式 - “out”目录是否与 .acignore 位于同一级别?您需要将它们放在树的每个目录中。
我将 .aignore 文件添加到整个树中,以避免人们必须在其计算机上指定 ACCUREV_IGNORE_ELEMS。典型的 .aignore 是:
Accurev's filtering is used only to filter what appears in the (external) list so if things have already been added, they will not be filtered out.
The .acignore files are not able to specify a recursive pattern - is the "out" directory at the same level as the .acignore? You need to put them in each directory of the tree.
I added .acignore files to our entire tree to save people having to specify ACCUREV_IGNORE_ELEMS on their machines. A typical .acignore is: