<div>Dear Christophe,</div>  <div>&nbsp;</div>  <div>Many thanks for your advice.&nbsp; I didn't know that there are some catches in using SVK/SVN:mirrror and it looks like automating the merging process with SVN hooks is not a good idea after all.&nbsp; I will test the mechanism your described and then&nbsp;let developers try it out.&nbsp; Eventually, we'll need to have someone to perform code merging on daily bases.&nbsp; That is actually something we tried to aviod but automtic code merging is near impossible with SVK/SVK.</div>  <div>&nbsp;</div>  <div>Thanks again,</div>  <div>Eric</div>  <div><BR><B><I>Christophe Guillon &lt;guillonc@free.fr&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="MSHTML 6.00.6000.16525" name=GENERATOR>  <STYLE></STYLE>    <DIV><FONT face=Arial size=2>Dear "dev null",</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT
 face=Arial size=2>I use the scenario 2 (* see below) that you mention to mirror two distant repositories that are contributed on both side as you describe.</FONT></DIV>  <DIV><FONT face=Arial size=2>It works.</FONT></DIV>  <DIV><FONT face=Arial size=2>But... there are some problems that you may want to be aware of. In particular I experienced:</FONT></DIV>  <DIV><FONT face=Arial size=2>1. problem with sync, some repositories revisions simply can't be sync due to pending SVK/SVN:Mirror problems. This is a problem that may block you to mirror the entire repository history. It's ok until you see the problem.</FONT></DIV>  <DIV><FONT face=Arial size=2>2. problem with smerge. On some particular scenarios,&nbsp;for instance a directory copy followed by a deletion of some files/directory inthe same commit, smerge does not properly replay the commit. This is silent, the symptom is that the two repositories diverged, and on the //secondary you have "undeleted" files for
 instance.</FONT></DIV>  <DIV><FONT face=Arial size=2>3. when you have conflicts on a merge, you have to resolve it with a lot of care as every of your commit will then be mirror back to the other side, potentially creating conflicts again, in this case it is very "easy" to make the repositories diverge (i.e. you end with apparently synchronized repositories, but the files are different).</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Thus as soon as you use SVK to mirror back and forth repositories, you end up with </FONT>&nbsp;<FONT face=Arial size=2>repositories that are not equivalent and sometime you can have hard time correcting things. </FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>If you have a lot of developements on both side, you should be aware that you can not fully guarantee an equivalence of the repositories.</FONT></DIV>  <DIV><FONT face=Arial size=2>Though, if you
 have for instance most branch creations and merge activity on one side only, the //primary for instance, it is ok. It is the way I use it.</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>For the scenario you describe, and in particular point 4, I use a slightly different mechanism:</FONT></DIV>  <DIV><FONT face=Arial size=2>&gt;4) There is problem when SVK merges code changes from //secondary back to //primary.&nbsp; It merge every revision starting with revision 2.&nbsp; The process took couple &gt;hours and all of them are empty merges except for the last two.<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; svk sync //primary<BR>&gt;&nbsp;&nbsp;&nbsp; svk sync //secondary<BR>&gt;&nbsp;&nbsp; svk smerge --log --incremental --baseless //secondary //primary<BR>I do not use &nbsp;--baseless (unless for the very first smerge). I guess it would avoid you the first&nbsp;batch of empty merges.&nbsp;</FONT></DIV>  <DIV><FONT face=Arial size=2>Thus
 after the first synchro from //primary to //secondary and then from //secondary to //primary, I use:</FONT></DIV>  <DIV><FONT face=Arial size=2>update //secondary:</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp; svk sync //primary</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp; svk sync //secondary</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp; svk smerge --incremental //primary //secondary</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>update //primary:</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp;svk sync //primary</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp;svk sync //secondary</FONT></DIV>  <DIV><FONT face=Arial size=2>&nbsp;svk smerge --incremental //secondary //primary</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; Regards,</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; --
 C.Guillon</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>  <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=clevnull@yahoo.com href="mailto:clevnull@yahoo.com">dev null</A> </DIV>  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=svk-devel@bestpractical.com href="mailto:svk-devel@bestpractical.com">svk-devel@bestpractical.com</A> </DIV>  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 04, 2007 8:34 PM</DIV>  <DIV style="FONT: 10pt arial"><B>Subject:</B> [svk-devel] Need help merging two SVN repostories with SVK</DIV>  <DIV><BR></DIV>  <DIV>Hi,</DIV>  <DIV>&nbsp;</DIV>  <DIV>I need help to figure out the proper way to setup SVK to keep two SVN repositories in sync.&nbsp; Currently, we have one group of
 developers working from the primary SVN repository using SVN clients.&nbsp; There will be another&nbsp;group of developers that will be working on the same project&nbsp;at another&nbsp;location and they will&nbsp;prefer to use SVN&nbsp;clients too.&nbsp; Therefore, my goal&nbsp;is to&nbsp;maintain two identical SVN repositories with the help of SVK.&nbsp; I've been testing the following setup scenarios:</DIV>  <DIV>&nbsp;</DIV>  <DIV>Scenario #1:</DIV>  <DIV>1) First location hosts primary SVN repository (svn://primary-repos/)</DIV>  <DIV>2) Second location mirrors the primary repository with&nbsp;SVK and&nbsp;makes a local copy.</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk mirror svn://primary-repos/ //mirror<BR>&nbsp;&nbsp;&nbsp;&nbsp;svk sync //mirror</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk cp -m "Create a local branch" //mirror //local</DIV>  <DIV>3) Developers at the second location work on SVK branch(//local) using SVN clients.&nbsp; But then according to <A
 href="http://svk.bestpractical.com/view/SVKTools">SVKTool webpage</A>, it indicates that there are consequences when using SVN clients on a SVK depot.&nbsp; Therefore this scenario will not work.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Scenario #2:</DIV>  <DIV>1) Second location hosts the secondary SVN repository (svn://secondary-repos/).</DIV>  <DIV>2) First location hosts the primary SVN repository (svn://primary-repos/)&nbsp; On the same server, SVK mirrors the primary repository and the secondary repository.</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk mirror svn://primary-repos/ //primary</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk sync //primary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # This repos contains all the source codes</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk mirror svn://secondary-repos/ //secondary</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk sync //secondary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# This&nbsp;repos is completely empty at the moment</DIV>  <DIV>3) SVK
 merges the code from //primary to //secondary and it went well.&nbsp; The primary SVN repos and the secondary SVN repos are indentical now.</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk smerge --log --incremental --baseless //primary //secondary</DIV>  <DIV>4) There is problem when SVK merges code changes from //secondary back to //primary.&nbsp; It&nbsp;merge every revision starting with revision 2.&nbsp; The process took couple hours and all of them are empty merges except for the last two.</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;svk sync //primary</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk sync //secondary</DIV>  <DIV>&nbsp;&nbsp;&nbsp; svk smerge --log --incremental --baseless //secondary //primary</DIV>  <DIV>&nbsp;</DIV>  <DIV>Is scenario #2 the proper setup for the job? If so, is there a way or svk command that can make merging between two mirrors happen faster? because i'm thinking of using SVN hooks to trigger SVK merging&nbsp;on every user&nbsp;commit.&nbsp; Any&nbsp;advice&nbsp;will
 be greatly appreciated and i'm so sorry the long post.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks,</DIV>  <DIV>Eric</DIV>  <div>  <HR SIZE=1>  <A href="http://us.rd.yahoo.com/evt=48250/*http://searchmarketing.yahoo.com/arp/sponsoredsearch_v9.php?o=US2226&amp;cmp=Yahoo&amp;ctv=AprNI&amp;s=Y&amp;s2=EM&amp;b=50">Pinpoint customers </A>who are looking for what you sell.   <div>  <HR>    <div></div>_______________________________________________<BR>svk-devel mailing list<BR>svk-devel@bestpractical.com<BR>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel<BR></BLOCKQUOTE>_______________________________________________<BR>svk-devel mailing list<BR>svk-devel@bestpractical.com<BR>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel<BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=1>Tonight's top picks. What will you watch tonight? 
<a href="http://us.rd.yahoo.com/tv/mail/tagline/tonightspicks/evt=48220/*http://tv.yahoo.com/ 
">Preview the hottest shows</a> on Yahoo! TV.