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

Re: remove a checked out directory

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-20 11:46:35 CEST

On Oct 20, 2005, at 11:30, jerome jansou wrote:

> My question is "how to remove a directory previously
> created by a checkout from my working directory ?"
>
> A concrete example :
>
> svn checkout svn://host/proj/
>
> proj contains 2 directories :
> - v2.0_beta
> - v1.2_patch9
>
> I'm currently working on the 2.0_beta version.
> I need to fix a bug i my 1.2_patch9 version, I test it
> and release it, then I do not want to use anymore the
> 1.2_patch9 version, so I want to remove it from my
> harddrive without altering anything in the repository.
> If I just do a "rm -rf", a further update at top level
> will bring it back.
>
> Up to now, I used to first remove the "not wanted
> anymore" directory from my development space with a
> "rm -rf", then editing the read-only file .svn/entries
> in the parent of the "not wanted anymore" directory,
> to supress the reference to this directory (well it
> looks like cvs...)
>
> "svn delete" does not seem satisfactory because I
> cannot risk a further commit some time later who would
> really alter the repository.

You should not edit anything in the .svn directories.

You should check out only the part of the repository you want.

svn checkout svn://host/proj/v2.0_beta

When you need to fix a bug in 1.2:

svn checkout svn://host/proj/v1.2_patch9

When you're done fixing the bug in 1.2, you can remove the 1.2
working copy if local hard drive space is of concern.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 20 11:49:18 2005

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.