You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Steven Woody <na...@gmail.com> on 2009/11/25 06:24:23 UTC
Ignore file/directory with name begin with '!'
Hi,
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.
Thanks.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424085
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Ignore file/directory with name begin with '!'
Posted by Ryan Schmidt <su...@ryandesign.com>.
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
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424234
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Ignore file/directory with name begin with '!'
Posted by Steven Woody <na...@gmail.com>.
On Wed, Nov 25, 2009 at 5:41 PM, Ryan Schmidt
<su...@ryandesign.com> 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.
So, What should I do if my directory is some like:
!Build\Debug
!Build\Debug\foobar
Thanks.
>
>
> Or was the backslash also part of the directory name? I didn't test that.
>
>
>
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424229
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.
Re: Ignore file/directory with name begin with '!'
Posted by Ryan Schmidt <su...@ryandesign.com>.
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 .
$
Or was the backslash also part of the directory name? I didn't test that.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424135
Please start new threads on the <us...@subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <us...@subversion.apache.org>.