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

Re: bug: svn add does not check svn:ignore (win32 v 1.4.2)

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-12-29 16:54:58 CET

On 12/29/06, craigp <craigp98072@yahoo.com> wrote:
> problem:
> svn add does not seem to check the svn:ignore property.
> repro:
> add CVS dir, foo.htm, bar.html in working dir
> set svn:ignore prop on working dir to CVS *.htm
> >svn status
> ? bar.html
> >svn status --no-ignore
> ? bar.html
> I foo.htm
> >svn add *
> A bar.html
> A CVS\Entries
> A CVS\Entries.Extra
> A CVS\Entries.Extra.Old
> A CVS\Entries.Old
> A CVS\Repository
> A CVS\Root
> A foo.htm
> expected behaviour:
> svn should only add bar.html. foo.html and CVS/* should only be added
> iff --no-ignore switch is added to 'svn add' cmd.

This isn't a bug - Subversion is doing precisely what you've asked it to do.

Your shell is expanding the asterisk to all the filenames found. If
you explicitly pass an ignored filename to svn add (which, by doing
svn add *, you have effectively done), it will be added - Subversion
takes you at your word that you really do want to add it. This is by

Had you done svn add . --force in an already-controlled directory,
svn:ignore would have been honored.

I can't reach svnbook.org to double-check it, but I believe this is documented.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 29 16:55:13 2006

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.