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

Re: Newbie question: svn:ignore ignored?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-27 00:29:53 CET

On Nov 26, 2005, at 20:52, Frank Reiff wrote:

> I have just started using svn on Mac OS X with XCode a few days
> ago. I am really happy with the system (great improvement compared
> to CVS and CA's Harvest CC), but I do have a problem using the
> svn:ignore property.
>
> I want svn to ignore all files in the "build" subdirectory, so I
> went into the "working copy"'s project directory and set the
> svn:ignore property to "build" with (from memory):
>
> svn propset svn:ignore 'build' .
>
> The project directory is the immediate parent directory of the
> "build" directory whose files I want to be ignored.
>
> When I did my commit the meta data of the directory was correctly
> saved and I can see that it has been applied using svn propget.
>
> Unfortunately this does not result in the behavior I want. Each
> time I do an svn status, I still see the build directory and its
> subdirectories with the "? I'm not under version control" symbol.
>
> What am I doing wrong?

Is the build directory already under version control? That is, did
you already svn add build at some point? If so, svn:ignore build .
will have no effect, because what it means is that Subversion will
ignore an unversioned item called "build". Since it's already
versioned, there's nothing to ignore.

There are two ways you can do it. 1) You can remove the build
directory from version control with svn rm build. Then, when your
build system recreates the build directory, svn st will not show it.
Or, 2) you can leave the build directory under version control but
mark all items inside it to be ignored. That is, in the directory
containing the build directory, svn propedit svn:ignore . and remove
the line that says "build", and instead svn propset svn:ignore '*'
build.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 27 00:31:23 2005

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