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

Re: Ignore file/directory with name begin with '!'

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 25 Nov 2009 06:48:08 -0600

On Nov 25, 2009, at 06:43, Steven Woody wrote:

> On Wed, Nov 25, 2009 at 5:41 PM, Ryan Schmidt wrote:
>> On Nov 25, 2009, at 00:24, Steven Woody wrote:
>>> We have a directory !Build\ in the project tree. How can I set
>>> svn:ignore property to ignore the whole directory? It seem there is
>>> no way to specify the name in the file pattern list.
>> What have you tried? It seems to work fine for me with Subversion 1.6.5:
>> $ mkdir '!Build'
>> $ svn st
>> ? !Build
>> $ svn propset svn:ignore '!Build' .
>> property 'svn:ignore' set on '.'
>> $ svn st
>> M .
>> $
> I tried, now i understand the problem. Actually, there are
> files/directories existing in '!Build', so the 'svn st' still lists
> them although the property has been already set successfully.

If the directory !Build is not versioned, then "svn st" should only show the directory !Build in status output, and if you ignore the !Build directory as shown above, then that should go away.

So it sounds like !Build is versioned (i.e. at some point you ran "svn add '!Build'" and "svn commit"). Of course, ignoring items that are versioned has no effect.

> So, What should I do if my directory is some like:
> !Build\Debug
> !Build\Debug\foobar

Well, if the directory !Build is versioned, and you want to ignore the unversioned Debug directory inside it, then you simply

svn propset svn:ignore Debug '!Build'
svn commit


Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-25 13:50:06 CET

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