Search code examples
directoryignoreaccurev

Accurev: how to ignore contents of a directory but not the directory


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.


Solution

  • 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)