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

Re: svn add doesn't honor svn:ignore or global ignore?

From: Reinhard Brandstädter <reinhard.brandstaedter_at_jku.at>
Date: 2006-10-31 09:05:16 CET

On Tuesday 31 October 2006 08:52, Erik Huelsmann wrote:
> > So is this behavior expected or do i have to pipe the output of 'svn
> > status' to 'svn add' and not use 'svn add *'
>
> Yes, the behaviour is expected: svn will always add explicitly
> mentioned target. '*' expands to gshadow, gshadow- (etc), meaning you
> explicitly mentioned them in the target list. the solution is to 'svn
> add .' which is implicit for the files contained within '.' meaning
> that it should honor your ignore pattern.
>
> In other words: you can't use svn:ignore to prevent a file from ever
> being committed. If you want to do that, I suggest using a pre-commit
> hook which prevents commits with certain file names.

Well I tried to call "svn add ." but this won't work within the /etc directory
because "/etc" is already under version control. (It's an in-place import)
So for the first initial check-in i see no other way than doing a svn add *
and then doing an svn del on unwanted files, svn del shadow for example.

Reinhard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 31 09:05:51 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.