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

Re: svn commit failing, "directory missing"

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-11-16 23:41:04 CET

On Nov 16, 2007, at 16:03, Chris Stankevitz wrote:

> Ryan Schmidt wrote:
>> Do not delete directories through the filesystem. :) You must use
>> Subversion commands when you want to delete or move things.
> What if you don't want to delete it from the subversion repo, but
> you do want to delete it from your hard drive?
> For example, say you want 98 of the 100 directories under
> "branches". Can you checkout all 100 then remove the two you do not
> want:
> svn co svn+ssh://foo/branches
> rm -rf 99/
> rm -rf 99
> Or do you need to do them one by one:
> svn co svn+ssh://foo/branches/1
> svn co svn+ssh://foo/branches/2
> svn co svn+ssh://foo/branches/3
> svn co svn+ssh://foo/branches/96
> svn co svn+ssh://foo/branches/97
> svn co svn+ssh://foo/branches/98

In that case, it sounds like you want a sparse checkout. That feature
will be in Subversion 1.5.

Until then, you can try this:

svn checkout -N svn+ssh://foo/branches
cd branches
svn up 1 2 3 ... 96 97 98

(List each directory you want to retrieve.)

The -N feature is slightly broken, but it may work for you in this
case. Try it out.

However, I would be surprised that you would want to pull down 98
branches. Usually, one works on a single branch at a time. Maybe one
has 2 or 3 working copies for 2 or 3 different branches. But I've
never heard of anyone needing to work on 98 branches at once.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 16 23:41:47 2007

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.