Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN: Ignore some directories recursively

I don't want any directory named build or dist to go into my SVN no matter how deep in the tree it is.

Is this possible? In git I just put

build
dist

in my .gitignore at the root and it recursively ignores. How do I do this with svn? Please don't tell me to do a propset on every parent dir...

like image 366
Paul Tarjan Avatar asked Jan 09 '10 23:01

Paul Tarjan


People also ask

How do I ignore bin and obj folder in svn?

To set your global ignore pattern (with TortoiseSVN) right click Windows Explorer –> TortoiseSVN –> Settings. Once you click on settings enter your global ignore pattern. I'm blocking everything in my bin folder, obj folder, anything that may have been named *.


2 Answers

As of subversion 1.8, there is now the svn:global-ignores property which works like svn:ignore but recursively (so set this on your top-level directory)

like image 125
twin Avatar answered Oct 08 '22 12:10

twin


svn propset takes --recursive as an option, so you can do this, with two downsides:

  1. you have to check out the entire repository (or at least all directories therein), and
  2. you have to remember to set the svn:ignore property whenever you add a new directory
like image 44
Michael Hackner Avatar answered Oct 08 '22 12:10

Michael Hackner