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

Re: How do I remove a directory (or file) under version control (opposite of "svn add")

From: Jacob Atzen <jacob_at_aub.dk>
Date: 2005-12-31 12:48:00 CET

On Sat, Dec 31, 2005 at 12:26:44PM +0100, Nagy Zoltán wrote:
>
> Hi!
>
> I need to remove a directory under version control, but must keep this
> directory in local wokring copy. Unfortunately "svn delete" not just
> remove under version control, but kill my directory (or file) from the
> working copy after commit. So, how do I change a versioned file to be
> unversioned, without local remove? (opposite of "svn add")

The only was I'm aware of is to copy the offending directory someplace,
delete it from the repository and move it back:

cp -R dir/ /tmp
svn delete dir
svn ci -m "* Deleted dir"
mv /tmp/dir .

-- 
Happy new year,
- Jacob Atzen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 31 12:50:24 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.