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

Re: Setting up local ignore list

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-12-19 20:39:42 CET

On Dec 19, 2006, at 07:04, Kevin Nowaczyk wrote:

> I've read the FAQ and read through sections of the SVN
> book that I thought could answer this, but didn't find
> an answer. I have full access to an SVN repository.
> There are several directories within this repository
> that I want my working copy to ignore. I never want
> them copied to my working copy. As far as I know, I
> can't use svn:ignore because then that will be set for
> all users of the repository, and with the directory
> already added to the repository, won't do any good. I
> just want a local ignore list. Is this possible? The
> only solution I could figure was to remove the entries
> from the .svn/entries file. This seems to work until
> a file within that list is changed. Then a new
> entries file is generated and the unwanted directories
> return.

Subversion's concept of ignoring (either via svn:ignore or via your
local client's global ignores configuration) only relate to
unversioned items, but you said you want to ignore an item that is
already in the repository, hence a versioned item. So Subversion's
ignore features won't help you.

It's not a good idea to muck with the entries file or anything else
in the .svn directories. This can have unpredictable results.

The suggested solution to your problem is to get a working copy of
whatever it is, including the directories you don't want. Then, after
that's done, you can switch those directories that you don't want to
an empty directory in the repository. Example:

# Make empty directory in repository, if you don't already have one:
svn mkdir $REPO/empty -m "making empty directory for switching"

# Check out complete working copy of whatever:
svn co $REPO/whatever
cd whatever

# Don't want directories foo or lib/bar so switch them to empty:
svn switch foo $REPO/empty
svn switch lib/bar $REPO/empty

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 19 20:40:24 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.