[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: Kevin Ballard <kevin_at_sb.org>
Date: 2004-08-22 22:25:54 CEST

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.


On Aug 21, 2004, at 8:45 AM, Frank Budszuhn wrote:

> Hi list,
> I tried working with ignores in subversion and it kinda confuses me.
> Here's my scenario:
> [snip]

Kevin Ballard

  • application/pkcs7-signature attachment: smime.p7s
Received on Sun Aug 22 22:26:12 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.