[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: craigp <craigp98072_at_yahoo.com>
Date: 2006-12-29 16:41:51 CET

that's not how i would have expected it to work. if i specifically set it to
ignore, say, everything that matches 'CVS', then it shouldn't add anything that
matches 'CVS' unless i explicitly override it. isn't that what svn:ignore is
for? if not, what use is it, and is there some other way to filter a large set
of files other than writing my own script?

thanks,
--craig

--- Mark Phippard <markphip@gmail.com> wrote:

> 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/
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 29 16:41:58 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.