5

我有一个“项目”目录,其中有一个 .acignore 文件,其中包含:

出去/*

“project”目录包含签入的“out”目录。但我想忽略“out”目录树中的任何内容。

以上似乎不起作用。什么是正确的语法?

谢谢。

4

2 回答 2

2

该语法实际上是正确的。我的猜测是“out”目录的内容具有(成员)状态。ACCUREV_IGNORE_ELEMS 和 .acignore 不会忽略已经在 AccuRev 控制下的文件。请注意,在此示例中,我的“Out”目录中的文件还不是成员,因此不会出现在(外部)搜索请求中:

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(外部)

于 2010-04-10T20:55:02.077 回答
2

Accurev 的过滤仅用于过滤出现在(外部)列表中的内容,因此如果已经添加了内容,它们将不会被过滤掉。

.acignore 文件无法指定递归模式 - “out”目录是否与 .acignore 处于同一级别?您需要将它们放在树的每个目录中。

我将 .acignore 文件添加到我们的整个树中,以免人们不得不在他们的机器上指定 ACCUREV_IGNORE_ELEMS。一个典型的 .acignore 是:

*.ncb
*.suo
*.user
Debug/*
Debug
bin/*
bin
obj/*
obj
Release/*
Release
TestResults
TestResults./*
于 2010-05-25T05:40:39.323 回答