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

Re: svn:ignore and add

From: Frank Budszuhn <mail_lists_at_budszuhn.de>
Date: 2004-08-23 09:49:23 CEST

Hi Kevin,

thanks for clarifying! What you say makes perfect sense. Still I find
that svn:ignore since it can only be set on directories which are added
to the repository and isn't recursive is not of too much use when
combined with either add or import commands. It's sort of a chicken and
egg problem: I want the property set when I add or import files, but I
cannot set the property since the directory is not yet under version
control.

If I use import and global-ignores then this is not a problem. But I can
set global-ignores only locally.

Thanx again
Frank

Kevin Ballard wrote:

> The problem is you're using svn add, not svn import. With the first
> try the svn:ignore on the root doesn't block t1.txt from being added
> since 'svn add *' is the same as 'svn add foo bar t1.txt t2.txt
> <etc>', and svn:ignore doesn't affect versioned files or directly
> adding an unversioned file. And it doesn't block the t1.txt in the
> subdirectory since svn:ignore isn't recursive (i.e. it only affects
> the direct contents of the directory, not any subdirectories).
>
> In the second case, the t1.txt in the root is added because you used
> svn add for the same reason as above, and the subdirectory t1.txt was
> ignored because of global-ignores.
>
> So basically, you should use svn import, not svn add.
>
> HTH,
> Kevin
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 23 09:52:26 2004

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.