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

Re: A couple of questions on revert and svn:ignore

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2006-09-15 21:47:00 CEST

However, if you read further:

The list of patterns to ignore is also used by svn add and svn import.
Both of these operations involve asking Subversion to begin managing
some set of files and directories. Rather than force the user to pick
and choose which files in a tree she wishes to start versioning,
Subversion uses the ignore patterns to determine which files should
not be swept into the version control system as part of a larger
recursive addition or import operation.

So, if you svn:ignore *.suo, then svn add a directory that contains a
.suo file, that file will be ignored.

However, if you explicitly add test.suo, subversion will obey your
command and add it, the assumption being that if you name the exact
file you want to add, you really do want to add it, regardless of your
svn:ignore/global-ignores settings.

On 9/15/06, Jiho Han <jhan@infinityinfo.com> wrote:
> But it seems like this section from the book says otherwise:
>
> The svn:ignore property contains a list of file patterns which certain
> Subversion operations will ignore.
> Perhaps the most commonly used special property, it works in conjunction
> with the globalignores
> run-time configuration option (see the section called "Config") to
> filter unversioned files and
> directories out of commands svn status, svn add, and svn import.
>
> -----Original Message-----
> From: Andy Levy [mailto:andy.levy@gmail.com]
> Sent: Friday, September 15, 2006 3:39 PM
> To: Jiho Han
> Cc: users@subversion.tigris.org
> Subject: Re: A couple of questions on revert and svn:ignore
>
> On 9/15/06, Jiho Han <jhan@infinityinfo.com> wrote:
> > First question is whether propset svn:ignore takes effect after a
> > commit.
> > For example, if you have a test.suo file and you set svn:ignore to
> > *.suo and svn add test.suo, what should happen?
>
> test.suo will be added because you explicitly told Subversion to add it.
> ignore is more for ignoring the unversioned file when looking at the
> status of the directory. See
> http://svnbook.red-bean.com/nightly/en/svn.advanced.props.html#svn.advan
> ced.props.special.ignore
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 15 21:47:42 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.