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

RE: Suggestion for recursive ignore

From: Bob Archer <bob.archer_at_amsi.com>
Date: Thu, 23 Jul 2009 13:08:13 -0400

> I know that svn:ignore allows to specify which files to ignore in a
> given folder, and I know that with svn propset -R, I can propagate this
> to subfolders. However, if I create a new subfolder and add it to
> version control, I have to repeat propset for this folder to ignore the
> same patterns.
>
> I know that I can use global ignore in the cofiguration area, but then
> the configuration becomes user-specific.
>
> So, I'm thinking about a new property called svn:ignore-recursive or
> something like that, which would work like the bugtraq: properties in
> TortoiseSVN: if the property is not found in the committed folder, the
> client would search upwards through the folder tree to find it until it
> comes to the tree root.
>
> That way, setting svn:ignore-recursive on a given folder would allow to
> ignore the specified patterns in any subfolders, including the ones
> created afterwards.
>
> In fact, I see another way to reach this behavior without regularly
> running svn propset -R on the root folder : a post-commit hook would
> easily add the svn:ignore property to the new folders.
>

Rather than a new property I would rather see the ignore syntax extended to be somewhat nant fileset like. So, if I wanted the ignore to be recursive I would just add **/ to it... for example, ignore all .suo files I could use **/*.suo

BOb

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374908

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 19:09:06 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.