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

Re: deleting a tree in the repository

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Thu, 27 Mar 2008 13:59:39 -0400

Geoffrey wrote:
> I should have read your message closer before responding. My apologies.
> This is precisely what I want to do. That is, 'simply delete and
> recreate the repository.' There is no history to be concerned with.
> That being said, is that what 'svn rm; svn import' would do for me?

To delete and recreate the repository, you would just delete the repository files:

        # rm -rf /actual/path/to/repository/files

(you probably want to shut down svnserve or Apache before doing this, depending
on how you are hosting the repo). If your server is Windows based, just
navigate to the repo directory and hit shift-delete (so it won't try and copy
the files into your trashcan).

Then you recreate the repository using `svnadmin create` and `svn import` the
new layout.

'svn rm' does not delete the repository; it merely marks those files as being
deleted in the current revision (i.e. you could always get them back later).
You don't seem to want to maintain the history, so you don't want to do that.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-27 19:00:08 CET

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