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

Copying code from one repository to another

From: Kamil Libich <kamil.libich_at_gmail.com>
Date: Thu, 31 May 2012 15:52:52 +0100

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

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

Is there?

Received on 2012-05-31 16:59:26 CEST

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