>svn add . --force
ok, thanks. that works, although it's a bit odd. i now see that command in the
docs under svn add, but i didn't see the shell filename-expansion override
phonemonen explained under svn:ignore. for consistency's sake, i think it may
not be a bad idea to allow:
>svn add
without an arg, which would then work similarly as
>svn status
(and both currently work the same with a *), but as you point out, i can add
the --force flag. it's just not as intuitive; personally i'd prefer having to
specify --no-ignore explicitly rather than what amounts to an implicit
overriding.
thanks again,
--craig
--- Andy Levy <andy.levy@gmail.com> wrote:
> 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
> > 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:
> >
> > 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
> design.
>
> 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.
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 30 14:01:50 2006