Merging SVN repositories

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Merging SVN repositories

Deepak Saraswat

Hi All,

 

I need to do copy the content from one SVN repository to the other SVN repositories. Also, I need to make sure that Bidirectional merges are working after I copy content from one SVN to other.

Does anybody know how to do that. I think we have a svnsync command to copy the contents from one svn to other. But I am not sure if this allows bidirectional merging or not or bidirectional merging is even possible or not.
 
Any help in this regard is much appreciated.
 

Regards,

Deepak



Reply | Threaded
Open this post in threaded view
|

Re: Merging SVN repositories

Thorsten Schöning
Guten Tag Deepak Saraswat,
am Mittwoch, 22. Januar 2014 um 12:21 schrieben Sie:

> I need to do copy the contentfrom one SVN repository to the other
> SVN repositories.

Do you only mean some content with or without history or really import
one complete repo into others? There are different ways to achieve
this depending on your answer. Some are svn import, just copying
something and committing it, svnadmin dump/load etc.

> Also, I need to make sure that Bidirectional
> merges are working after I copy content from one SVN to other.

What do you understand by those merges, syncing contents of two repos
or merging within only one repo? Svn won't assist you in anything
between two different repos, therefore there's not much that can
break, but it's possible.

> I think we have a svnsync command to copy the contents from one svn to other.

svnsync won't just copy, it's main purpose is two sync two repos with
the target beeing a read-only mirror of the source and the possibility
to sync only parts of the source repo to the target. But the key is
"read-only", you can't easily use the target where revisions got
synced to.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning       E-Mail:[hidden email]
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow

Reply | Threaded
Open this post in threaded view
|

Re: Merging SVN repositories

Les Mikesell-2
In reply to this post by Deepak Saraswat
On Wed, Jan 22, 2014 at 5:21 AM, Deepak Saraswat
<[hidden email]> wrote:

> Hi All,
>
>
>
> I need to do copy the content from one SVN repository to the other SVN
> repositories. Also, I need to make sure that Bidirectional merges are
> working after I copy content from one SVN to other.
>
> Does anybody know how to do that. I think we have a svnsync command to copy
> the contents from one svn to other. But I am not sure if this allows
> bidirectional merging or not or bidirectional merging is even possible or
> not.

You really can't keep 2 writable repositories in sync because
subversion needs to strictly serialize transactions and the
repository's global revision number.   Depending on what you are
doing, you might be able to set up a proxy that reads from the nearby
repository but writes to the master - with svnsync duplicating the
changes.    Or, Wandisco has a commercial tool to do this across a
larger number of locations.

Or, if groups at different locations normally work on different
components of your project(s), you might split them into different
repositories, using svn externals to pull everything together.

--
   Les Mikesell
     [hidden email]