subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Stieger <andreas.stie...@gmx.de>
Subject Re: How to svn ignore multiple directories and files properly ?
Date Sun, 04 Aug 2013 09:09:53 GMT
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

Mime
View raw message