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

Re: remover from svn control and leave local files alone?

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-28 21:40:30 CET

On Jan 28, 2006, at 21:15, Lares Moreau wrote:

> Answer: 42
> Question: How do I remove ./stuff from svn version control without
> loosing my local files?
>
> As a work around I did the following:
> $ cp ./stuff ./stuff-tmp
> $ svn rm ./stuff # Which effectively does a 'rm -rf' on the local
> disk
> $ mv ./stuff-tmp ./stuff
> $ rm -rf ./stuff/.svn
>
> It works but is ugly.
>
> Did I miss an option or tool somewhere?

Nope; that's exactly how you have to do it. Or, a slightly simplified
recipe (which is also more correct in the event that ./stuff contains
other directories):

$ svn export ./stuff ./stuff-tmp
$ svn rm ./stuff
$ mv ./stuff-tmp ./stuff

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 28 21:41:36 2006

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