[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: Dan C <djc_at_djc.id.au>
Date: 2005-12-31 13:03:31 CET

Jacob Atzen wrote:
> 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 .

If you're using a Unix OS it will be more efficient to hard-link the
directory tree under a different name (on the same filesystem!). Then
you can just let svn delete unlink the original:

 cp -rl dir dir_tmp
 svn rm dir
 svn ci
 mv dir_tmp dir

Dan C <djc@djc.id.au>
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Dec 31 13:06:27 2005

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