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

Re: pattern for specifying svn:ignore for files without extension

From: Ryan Schmidt <subversion-2010d_at_ryandesign.com>
Date: Wed, 1 Dec 2010 15:33:44 -0600

On Dec 1, 2010, at 15:19, Steve Cohen wrote:

> It seems to me that
> svn --recursive propset svn:ignore xyz
>
> is basically just syntactic sugar for manually going through issuing
> svn propset svn:ignore xyz
>
> on every node of the directory structure, It is syntactic sugar in the sense that the end product in either case would be the same. There is no "recursive" data attribute in a project's svn:ignore tree.

Yes, that's right.

> Which leads me to think that a one-time shell script or python script or whatever might be written to walk the directory tree, look for all the executable files and manually add them to that directory's svn:ignore list.

That should work.

The other approach that initially occurred to me was to clean the directory so there are no unversioned files ("make clean" perhaps), then build the software ("make"), then copy the output of "svn status" into an editor and massage it a bit to turn it into something you can hand to "svn propset svn:ignore --file". Though this would have to be done on a per-directory basis, so if there are many directories involved this may be impractical and a script as you suggest may do better.
Received on 2010-12-01 22:34:28 CET

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.