[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: Mark Phippard <markphip_at_gmail.com>
Date: 2006-12-29 16:20:55 CET

On 12/24/06, craigp <craigp98072@yahoo.com> wrote:
>
> 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
> I CVS
>
> >svn add *
> A bar.html
> A CVS
> 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: only add bar.html; foo.html and CVS/* should only be
> added
> if --no-ignore switch is added to 'svn add' cmd.

Let's simplify this a bit. If you ran this command:

svn add foo.htm

Then the file would be added even though *.htm matches the ignore pattern.
It does this because you explicitly said to add the file.

When you run svn add *, the * is not passed into Subversion, where it then
figures out the files. Instead, the command shell expands the * and passes
the resolved value to the command. So the net effect is that the command
that actually gets run is this:

svn add bar.html CVS foo.htm

In which case, the expected behavior would be for all of the items to be
added.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on Fri Dec 29 16:21:02 2006

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