You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Modha Khammammettu <MK...@calcas.com> on 2009/10/20 08:15:57 UTC

Copy from one repo to another

Hi All

I have a repository which I am currently working on "repocurrent"

I need to copy contents from another repository "repoxx" into my repository.

I can checkout "repoxx" and import into "repocurrent" but this way I will loose checkin history.

Is there a way where I can copy contents of repoxx into repocurrent while maintaining history?
Is checkout "repoxx" and importing into "repocurrent" the only way?

I use Tortoise SVN. Help on tortoise svn merge option got me worried with its cautions on misuse..

Please let me know.

Thanks
Modha/-

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2409281

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Copy from one repo to another

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 20, 2009, at 03:15, Modha Khammammettu wrote:

> I have a repository which I am currently working on "repocurrent"
>
> I need to copy contents from another repository "repoxx" into my  
> repository.

Ok.

> I can checkout "repoxx" and import into "repocurrent" but this way I  
> will loose checkin history.

Correct.

> Is there a way where I can copy contents of repoxx into repocurrent  
> while maintaining history?

Yes: dump and load.

> Is checkout "repoxx" and importing into "repocurrent" the only way?

No.

You would "svnadmin dump" the "repoxx" repository, and "svnadmin load"  
that dump into your "repocurrent" repository. This requires direct  
file access to both repositories. If direct file access to "repoxx" is  
not possible, you can use "svnsync" to make a local copy of "repoxx",  
then "svnadmin dump" that.

Since this operation will probably make your repository's revisions no  
longer chronological, date-based revision selection will no longer be  
reliable. If this is a problem, there are alternatives, like dumping  
your "repocurrent" repository too, and using svndumptool to merge your  
"repocurrent" dump with the "repoxx" dump, then loading this into a  
totally new empty repository. But this will renumber your existing  
revisions, which may be bad for you for other reasons such as existing  
references in log messages or your issue tracker, and the new  
repository will have a new UUID and you must check out new working  
copies, which may be inconvenient.

> I use Tortoise SVN. Help on tortoise svn merge option got me worried  
> with its cautions on misuse..

TortoiseSVN isn't relevant to the task you want to accomplish. You'll  
use svnadmin on the command line.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2409292

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].