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

Re: Copying code from one repository to another

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Thu, 31 May 2012 17:05:49 +0200

Am 31.05.2012 16:52, schrieb Kamil Libich:
> I have not to small repository with the one piece of software. [...] I don't
> want to copy ALL history. I'd like to make a copy based on one revision,
[...]
> What I wanted to do to use svn copy command but it finishes in error saying
> the repositories don't seem to be the same.
>
> The second approach was to define externals in the WC and having them
> checked out do the svn copy command. I've finished with something similar
> as formerly.

Using externals will still only make one repository accessible via a
working copy based on the other. In other words, the stuff will remain
were it is.

> So what I did was: already having the externals checked out in the Init
> folder in the WC linked with the destination repository I've created the
> Source folder; then I've manually copied the stuff from Init folder, I've
> added it, committed, and as the next step I've destroyed the external
> association.

Well, you got it working, but in a complicated way. Just use the
"export" function to get a file tree that is not a working copy. Then,
use "import" or "add" to add this tree to the target repository. In no
case is there a 1-step solution, you need at least two steps.

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
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. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2012-05-31 17:06:36 CEST

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