You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Henning Heil <li...@h-quadrat.com> on 2007/04/12 16:04:41 UTC

Re: delete/wipe out repositories (from the database)?

Hi KM,

yeah, that's really easy and I did that before myself (deleting the 
directories, no prob). But: when I imported the projects from eclipse 
lately there was no directory created, I spent a while to find something 
named even similar to an expected directory name but could not find 
anything.

I asked my provider (I run the svnserve on a managed box) and the answer 
was that all repositories are stored in a database - that's why I asked 
how I can completely delete the DB without destorying the installation. 
Leads me to another question: maybe eclipse/subclipse only created 
folders and not real repositories?

Seems the situation is a bit weird or - more likely - I am missing some 
information.

Any more ideas?

Thanks,

Henning


++++ KM wrote on 12.04.2007 16:18 ++++
> Henning
> I don't want to steer you wrong - but when i was testing it was very 
> easy to get rid of old test repositories - if you really never need 
> them again.  You can just remove the entire repository directory.  I 
> am using unix - so for example I have
>  
> /svnrepos
>       mytestrepo
>             README.txt  conf  dav  db  format  hooks  locks
>  
>       myotherone
>             README.txt  conf  dav  db  format  hooks  locks
>  
> So - if i want to keep 'myotherone' and not 'mytestrepo', I can just 
> remove them -
>   rm -rf  /svnrepos/myotherone
>  
> Then it no longer exists - and you may use svnadmin create to create 
> it again -   Of course you could just move it out of the way and 
> recreate it - until you are sure.
>  
> Others may have different suggestions.
> KM
>
> */Henning Heil <li...@h-quadrat.com>/* wrote:
>
>     Hi everybody,
>
>     I was just able to get my svnserve running and did some testing,
>     imported projects from Eclipse to svnserve and created some
>     repositories.
>
>     Now I did enough testing and want to get rid of the test data, means
>     wipe out all repositories. Additional condition is: I want to create
>     repositories with the same names later for future production use.
>
>     As far as I understood the docs and faq it is not possible to
>     delete the
>     repositories with svnadmin and recreate them with the same name.
>
>     Can anyone tell how to achieve what I want? Delete the database
>     itself?
>     Which files exactly do I have to delete without damaging my
>     installation
>     (did not do it myself and so can not reproduce it)? Any other easy
>     way
>     to get back to the initial state (don't wanna lose server config
>     and so
>     on, just the repositories)?
>
>     Thanks for pointing me towards a solution,
>
>     Henning
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>     For additional commands, e-mail: users-help@subversion.tigris.org
>
>
> ------------------------------------------------------------------------
> The fish are biting.
> Get more visitors 
> <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50> 
> on your site using Yahoo! Search Marketing. 
> <http://us.rd.yahoo.com/evt=49679/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php?o=US2140&cmp=Yahoo&ctv=Q107Tagline&s=Y&s2=EM&b=50> 



-- 

http://www.h-quadrat.com
Consulting ¤ [web]Entwicklung ¤ Hosting ¤ IT Services Delivery


https://www.xing.com/profile/HenningT_Heil
Xing Invitation: http://www.xing.com/go/invita/2281

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Vanessa Romano Sobrino <va...@dicampus.com>.
Hi all:

About:
> I missunderstood the share project wizard in Eclipse (subclipse plugin),
> in step 2 it offers to 'create a new repository location'. Now this
> practically only seems to create folders in the exisiting repository, I
> will use the command line create syntax to create my repositories in the
> future.
I use that plugin, and that option is for create a 'conection' to a
repository that already exits, could be in local, could be in another
machine, and always using svn or svn+ssh (doesn't work with file:///). 
That location let you see the projects and their contents, make a
checkout,...

Bye


Vanessa

> Hi Uli,
>
> ++++ Ulrich Eckhardt wrote on 13.04.2007 09:04 ++++
>> On Thursday 12 April 2007 18:04, Henning Heil wrote:
>>
>>> yeah, that's really easy and I did that before myself (deleting the
>>> directories, no prob). But: when I imported the projects from eclipse
>>> lately there was no directory created, I spent a while to find
>>> something
>>> named even similar to an expected directory name but could not find
>>> anything.
>>>
>> Wait: what are you expecting? 'import' doesn't create a repository, at
>> least
>> not as far as SVN is concerned. If Eclipse make something different of
>> it you
>> would have to ask some Eclipse people or rather those that make the
>> Eclipse
>> plugin, which is a separate project from subversion.
>>
> I missunderstood the share project wizard in Eclipse (subclipse plugin),
> in step 2 it offers to 'create a new repository location'. Now this
> practically only seems to create folders in the exisiting repository, I
> will use the command line create syntax to create my repositories in the
> future.
>>> I asked my provider (I run the svnserve on a managed box) and the
>>> answer
>>> was that all repositories are stored in a database - that's why I asked
>>> how I can completely delete the DB without destorying the installation.
>>> Leads me to another question: maybe eclipse/subclipse only created
>>> folders and not real repositories?
>>>
>>
>> If you are using svnserve, the repositories also reside on the machine
>> it is
>> running on. Deleting them remains a simple recursive delete of the path
>> you
>> gave to 'svnadmin create'. I assume that you didn't create any
>> repository, so
>> you need to ask your admin - there is no way to obliterate information
>> from a
>> Subversion repository via svnadmin, and that's good so.
> I finally found out what's up when I discovered svnlook tree. Now I can
> create the 'real' new repositories as described in my other mail.
>
> Thanks for your help,
>
> Henning
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Henning Heil <li...@h-quadrat.com>.
Hi Uli,

++++ Ulrich Eckhardt wrote on 13.04.2007 09:04 ++++
> On Thursday 12 April 2007 18:04, Henning Heil wrote:
>   
>> yeah, that's really easy and I did that before myself (deleting the
>> directories, no prob). But: when I imported the projects from eclipse
>> lately there was no directory created, I spent a while to find something
>> named even similar to an expected directory name but could not find
>> anything.
>>     
> Wait: what are you expecting? 'import' doesn't create a repository, at least 
> not as far as SVN is concerned. If Eclipse make something different of it you 
> would have to ask some Eclipse people or rather those that make the Eclipse 
> plugin, which is a separate project from subversion.
>   
I missunderstood the share project wizard in Eclipse (subclipse plugin), 
in step 2 it offers to 'create a new repository location'. Now this 
practically only seems to create folders in the exisiting repository, I 
will use the command line create syntax to create my repositories in the 
future.
>> I asked my provider (I run the svnserve on a managed box) and the answer
>> was that all repositories are stored in a database - that's why I asked
>> how I can completely delete the DB without destorying the installation.
>> Leads me to another question: maybe eclipse/subclipse only created
>> folders and not real repositories?
>>     
>
> If you are using svnserve, the repositories also reside on the machine it is 
> running on. Deleting them remains a simple recursive delete of the path you 
> gave to 'svnadmin create'. I assume that you didn't create any repository, so 
> you need to ask your admin - there is no way to obliterate information from a 
> Subversion repository via svnadmin, and that's good so.
I finally found out what's up when I discovered svnlook tree. Now I can 
create the 'real' new repositories as described in my other mail.

Thanks for your help,

Henning

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Thursday 12 April 2007 18:04, Henning Heil wrote:
> yeah, that's really easy and I did that before myself (deleting the
> directories, no prob). But: when I imported the projects from eclipse
> lately there was no directory created, I spent a while to find something
> named even similar to an expected directory name but could not find
> anything.

Wait: what are you expecting? 'import' doesn't create a repository, at least 
not as far as SVN is concerned. If Eclipse make something different of it you 
would have to ask some Eclipse people or rather those that make the Eclipse 
plugin, which is a separate project from subversion.

> I asked my provider (I run the svnserve on a managed box) and the answer
> was that all repositories are stored in a database - that's why I asked
> how I can completely delete the DB without destorying the installation.
> Leads me to another question: maybe eclipse/subclipse only created
> folders and not real repositories?

If you are using svnserve, the repositories also reside on the machine it is 
running on. Deleting them remains a simple recursive delete of the path you 
gave to 'svnadmin create'. I assume that you didn't create any repository, so 
you need to ask your admin - there is no way to obliterate information from a 
Subversion repository via svnadmin, and that's good so.

Now, what could also be the case is that you are mistaking the difference 
between a working copy and a repository. Read about the difference in the 
Subversion book.

Uli

-- 
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: delete/wipe out repositories (from the database)?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 13, 2007, at 05:52, Andreas Schweigstill wrote:

> Ryan Schmidt schrieb:
>
>> Andreas wasn't quite right here. BDB is the default repository  
>> type through the end of the Subversion 1.1.x series. FSFS became  
>> available in 1.1.0 and became the default in 1.2.0.
>
> ??? That's exactly what I wrote:
>
> >>> This can be because your provider installed
> >>> a really old Subversion version (<=1.1). For newer versions FSFS
> >>> will be the default database format.

Ah, sorry, so you did. :)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Andreas Schweigstill <an...@schweigstill.de>.
Hello Ryan!

Ryan Schmidt schrieb:
> Andreas wasn't quite right here. BDB is the default repository type 
> through the end of the Subversion 1.1.x series. FSFS became available in 
> 1.1.0 and became the default in 1.2.0.

??? That's exactly what I wrote:

 >>> This can be because your provider installed
 >>> a really old Subversion version (<=1.1). For newer versions FSFS
 >>> will be the default database format.

With best regards
Andreas Schweigstill

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstraße 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: delete/wipe out repositories (from the database)?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 13, 2007, at 05:10, Henning Heil wrote:

> Andreas Schweigstill wrote on 13.04.2007 11:31
>
>> Why do you use Berkeley DB? This can be because your provider  
>> installed
>> a really old Subversion version (<=1.1). For newer versions FSFS  
>> will be
>> the default database format. Your provider probably took  
>> Subversion from
>> the Linux distribution which is very out-dated in many cases.
>>
>> Or do you have a specific reason why you need to create a BDB
>> repository?
>
> no, maybe I was wrong when I said BDB. SVN version is 1.1.3 and it  
> fits for my needs (at the moment), this might change later. I did  
> not create repositories with BDB manually and so I don't think it's  
> actually in use, the default was used for the creation.

Andreas wasn't quite right here. BDB is the default repository type  
through the end of the Subversion 1.1.x series. FSFS became available  
in 1.1.0 and became the default in 1.2.0. So if you did not specify  
otherwise, your repositories that you created with 1.1.3 are BDB.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Henning Heil <li...@h-quadrat.com>.
Hi Andreas,
++++ Andreas Schweigstill wrote on 13.04.2007 11:31 ++++
> Dear Henning!
>
> Henning Heil schrieb:
>> Ha! Yes, some information was missing: subclipse did not create a 
>> real repository as we would do with svnadmin create /...  etc.,  it 
>> really only created new folders for the projects in the Berkeley DB. 
>> To get rid of my testdata I simply moved that folder and created the 
>> root repository again, problem solved. Missleading was the term root 
>> repository, I got it from the installation mail of my provider - 
>> there is nor root repository, the root repository is just one among 
>> other repositories.
>
> Why do you use Berkeley DB? This can be because your provider installed
> a really old Subversion version (<=1.1). For newer versions FSFS will be
> the default database format. Your provider probably took Subversion from
> the Linux distribution which is very out-dated in many cases.
>
> Or do you have a specific reason why you need to create a BDB
> repository?
no, maybe I was wrong when I said BDB. SVN version is 1.1.3 and it fits 
for my needs (at the moment), this might change later. I did not create 
repositories with BDB manually and so I don't think it's actually in 
use, the default was used for the creation.

>> which will for me be multiple repositories because I don't like 
>> global revision numbers.
>
> But you know that you will never be able to perform operations across
> Subversion repositories, e.g. merging, copying, etc.?
yes, that's intentional.
> When I started using Subversion I also created tons (i.e. <10) distinct
> repositories, but finally I set up a new repository structure which
> consolidates all repositories into one big repository.
there are two main reasons, the most important is that I might share 
some projects with other freelancers and some not, so rights management 
was important to me and at my point of knowledge it was the easiest way 
to have seperate confs with own passwd files which means seperate 
repositories.
Last night I spent a while with
http://svnbook.red-bean.com/en/1.1/ch05s04.html#svn-ch-5-sect-6.1
and so think the above setup is the best solution for me, might not be 
for you or others.

> When using Subversion you totally have to forget the meaning of a
> revision number. Nearly all repository operations increase the number,
> and the only information Rn > Rm contains is that Rn is newer than Rm.
> Nothing more.
>
> You should never rely on a specific revision number in the long term
> view ("R1234 contains the release for customer X."). For releases you
> have to copy a revision (in most cases HEAD) to a release or tags
> branch.
yep, I knew that before. But anyway I don't like the thought of mixing 
up revision numbers across all my projects, even from a general 
structural point of view I don't like this behaviour; it simply doesn't 
seem logic to me. In addition I discussed that with a freelancer friend 
and he had the direct opposite experience you had: he started with a 
single repository in the beginning and it really gets on his nerves now.

When you combine this with the argument above I guess for me it was the 
right way to have multiple repositories, I am not such a poweruser 
anyway and will have a little number of files in the repositories; the 
projects are almost completely seperate from each other. But mankind 
always learns by experience and so I might change my structure later.

Anyway: thanks for sharing your thoughs, it's always good to have an 
additional perspective.

Cheers,

Henning

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: delete/wipe out repositories (from the database)?

Posted by Andreas Schweigstill <an...@schweigstill.de>.
Dear Henning!

Henning Heil schrieb:
> Ha! Yes, some information was missing: subclipse did not create a real 
> repository as we would do with svnadmin create /...  etc.,  it really 
> only created new folders for the projects in the Berkeley DB. To get rid 
> of my testdata I simply moved that folder and created the root 
> repository again, problem solved. Missleading was the term root 
> repository, I got it from the installation mail of my provider - there 
> is nor root repository, the root repository is just one among other 
> repositories.

Why do you use Berkeley DB? This can be because your provider installed
a really old Subversion version (<=1.1). For newer versions FSFS will be
the default database format. Your provider probably took Subversion from
the Linux distribution which is very out-dated in many cases.

Or do you have a specific reason why you need to create a BDB
repository?

> which will for me be multiple repositories because I don't like global 
> revision numbers.

But you know that you will never be able to perform operations across
Subversion repositories, e.g. merging, copying, etc.?

When I started using Subversion I also created tons (i.e. <10) distinct
repositories, but finally I set up a new repository structure which
consolidates all repositories into one big repository. Only my private
photo collection resides in its own repository.

When using Subversion you totally have to forget the meaning of a
revision number. Nearly all repository operations increase the number,
and the only information Rn > Rm contains is that Rn is newer than Rm.
Nothing more.

You should never rely on a specific revision number in the long term
view ("R1234 contains the release for customer X."). For releases you
have to copy a revision (in most cases HEAD) to a release or tags
branch.


With best regards
Andreas Schweigstill

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstraße 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: delete/wipe out repositories (from the database)?

Posted by Henning Heil <li...@h-quadrat.com>.
++++ Henning Heil wrote on 12.04.2007 18:04 ++++
> yeah, that's really easy and I did that before myself (deleting the 
> directories, no prob). But: when I imported the projects from eclipse 
> lately there was no directory created, I spent a while to find 
> something named even similar to an expected directory name but could 
> not find anything.
>
> I asked my provider (I run the svnserve on a managed box) and the 
> answer was that all repositories are stored in a database - that's why 
> I asked how I can completely delete the DB without destorying the 
> installation. Leads me to another question: maybe eclipse/subclipse 
> only created folders and not real repositories?
>
> Seems the situation is a bit weird or - more likely - I am missing 
> some information.
Ha! Yes, some information was missing: subclipse did not create a real 
repository as we would do with svnadmin create /...  etc.,  it really 
only created new folders for the projects in the Berkeley DB. To get rid 
of my testdata I simply moved that folder and created the root 
repository again, problem solved. Missleading was the term root 
repository, I got it from the installation mail of my provider - there 
is nor root repository, the root repository is just one among other 
repositories.

Now that is clear the questions come more to the point of

http://svnbook.red-bean.com/en/1.1/ch05s04.html#svn-ch-5-sect-6.1

which will for me be multiple repositories because I don't like global 
revision numbers.

Thanks to all,

Henning

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org