[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to svn ignore multiple directories and files properly ?

From: Andreas Stieger <andreas.stieger_at_gmx.de>
Date: Sun, 04 Aug 2013 10:09:53 +0100

Hello,

On 04/08/13 09:52, Z W wrote:
> classes/*.class
> README.txt
> build/artifacts/jars/*.jars
> build/artifacts/zips/*.zips

svn:ignore patterns are not recursive. You have to set svn:ignore on
each dir separately. See [1]

So...
* set svn:ignore property on "classes" with "*.class"
* set svn:ignore property on "build/artifacts/jars/" with "*.jar"
* set svn:ignore property on "build/artifacts/zips/" with "*.zip"
... and so on.

Subversion 1.8 and newer clients support an svn:global-ignores property,
which _is_ recursive; see [2] However this should only be used if you
are positive that a pattern should be ignored throughout the project,
which is not always the case.

[1]
http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.ignore.html
[2]
http://subversion.apache.org/docs/release-notes/1.8#repos-dictated-config

With kind regards,
Andreas Stieger
Received on 2013-08-04 11:10:29 CEST

This is an archived mail posted to the Subversion Users mailing list.