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

Re: Is there any way to ignore locally deleted files on svn update?

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Sun, 23 Mar 2008 19:22:19 -0500

On Mar 22, 2008, at 21:45, Phillip Rhodes wrote:

> Basically, I have an svn repo, with a trunk dir that contains
> a number of modules, which are all interrelated as part of
> a larger project. So, something like:
>
> trunk/
> module1/
> module2/
> module3/
> ...
>
> The problem is, I've recently added some new modules that need
> to be versioned, but that most people won't care about (yet).
> Since the number of modules is fairly large, I'd like the checkout
> script to delete these semi-superfluous modules
> from the working copyies. But doing so, they are just restored
> if the user does an "svn up" in the trunk dir of the working copy.
>
> svn:ignore doesn't work for this, since I don't actually want the
> modules ignored in all working copies. I basically just want a way
> to "hide" them in the working copies of folks who won't be interested
> in them at the moment.
>
> Is anything like this possible?

Yes... Create an empty directory in the repo, e.g.

svn mkdir $REPO/empty -m "making empty directory"

Now when users check out trunk...

svn checkout $REPO/trunk /path/to/wc

...they'll get all modules. If the modules are large, this may take
some time. But it'll only be on the initial checkout, because now if
you want the user to not have e.g. module2 you can say...

svn switch /path/to/wc/module2 $REPO/empty

The module2 directory will remain but it won't contain anything
(other than the administrative .svn directory).

Try it out.

Of course it depends on why you're wanting to delete the unneeded
modules locally. If it's a reason other than disk space, this
solution may not be useful to you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-24 01:23:11 CET

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.