Reputation: 1134
I have a directory tree under accurev. In this tree I have a directory work which I want to exclude from versioning for good (including subdirectories). Can I use .acignore?
Upvotes: 6
Views: 6424
Reputation: 2872
that is precisely what that file is for.
just add an entry like this to exclude the "work" directory:
path/to/directory/work
or, if you want to exclude all files and folders named "work" do this:
**/work
i just tested this to ensure it will work. under accurev version 5.7, you do not require a separate entry to exclude the contents of "work". however, i wouldn't recommend using the "**" wildcard for such a generic file name "work".
if you want to share your .acignore file with other users of your project be sure to promote the .acignore file itself so that others can pull it down.
this is the .acignore file that i put in the root of any accurev repository on my machine to exclude standard maven, intellij, eclipse, and git files:
**/target
**/.idea
**/.metadata
**/.classpath
**/.project
**/.settings
**/.git
**/*.iml
**/*.ipr
**/.gitignore
**/atlassian-ide-plugin.xml
that said, i did once have a colleague break our continuous integration build by creating a package named "target", so use that one with caution.
Upvotes: 2
Reputation: 501
Yes, acignore files can be used to tell accurev to exclude/ignore files from the directory. But the scope of .acignore file is restricted to the current directory. So you will need to create .acignore files on per-directory basis.
Upvotes: 0
Reputation: 4772
Yep, you'll need two entries in .acignore for that: one to exclude the directory and the other to exclude its contents (including sub-directories), e.g
myproject/bin/Debug
myproject/bin/Debug/*
Just keep/promote the .acignore file in the parent of the "myproject" subdirectory.
Upvotes: 9