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 assumi开发者_Go百科ng 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.
You should be able to use svn propset --recursive svn:ignore .*
from the root of your project.
I believe the propset --recursive option actually sets the properties recursively, but does not permanently/globally ignore the files. You can globally ignore by updating your .subversion/config file, and this will ignore the pattern everywhere regardless of where the files are located and svn props on individual files/folders.
See this stackoverflow discussion: Is there a concept of global ignores in svn?
精彩评论