Search code examples
svnsvnignore

SVN Ignore files anywhere in project


so I have started using Subversion and am confused about the ignore files.

From what I've read, I can ignore files within a directory with propedit/propset. However, I added a rule to ignore files starting with a dot (swap files for VIM which sometimes get left over), but it would seem then that I would have to apply that rule to every single directory and subdirectory in the project.

Does anyone know a way to make a file-pattern ignore statement work recursively using SVN?

here's my super-simple ignore (I'm assuming SVN uses GLOB and not RE):

.* 

and my project is something like:

project/
  application/
     models/
     views/
        form1/
        form2/
     config/
     controllers/ 
     libraries/
     plugins/
     helpers/
  css/

and many of the folders under application are several levels deep. It would be a supreme annoyance to have to apply this rule to each and every folder, especially since this is under active development and subject to change.

ALSO, i should add that I am NOT interested in modifying my user subversion config in ~/.subversion/ because I want this ignore to live in the repository, and affect all developers, not just me.


Solution

  • You should be able to use svn propset --recursive svn:ignore .* from the root of your project.