[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: Bob Archer <Bob.Archer_at_amsi.com>
Date: Mon, 4 Jun 2012 10:57:03 -0400

No, that's about how you do it. You export the revision you want, add it to your new/other repo then delete it from the first repo. You can then add a cross repo external if you want so you don't have to manually get stuff into your project.

You might want to read up on the Vendor Branches chapter of the SVN book. You can treat your external project the same as you would treat a vendor branch. Although, it depends on if you are using code or binaries as well.

BOb

From: Kamil Libich [mailto:kamil.libich_at_gmail.com]
Sent: Thursday, May 31, 2012 10:49 AM
To: users_at_tortoisesvn.tigris.org
Subject: Copying code from one repository to another

I have not to small repository with the one piece of software. This software has a lot features; some of them are project specific, some of them are not. I decided to 'extract' one of the non-specific features and since that moment to maintain it in another existing repository which holds my non-project specific features, which I can reuse later on in another projects. I don't want to copy ALL history. I'd like to make a copy based on one revision, and having that continuing development under newly created repository. I don't care what will happen with the previous development path in old repository.

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.

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.

It works, because analysing the log I've the traceability, so I know what, when, who and what for, but I'm thinking maybe there is a more gentle solution.

Is there?

K.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2968826

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2012-06-04 16:57:08 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.