[svk-devel] Using SVN client on an SVK repository

Jesse Vincent jesse at bestpractical.com
Mon Aug 6 10:17:07 EDT 2007


On Aug 5, 2007, at 3:32 AM, Pavan Balaji wrote:

> Jesse,
>
> Sorry, I was tied down with other things and just got to trying out  
> your suggestion -- it works like a charm! :-). Thanks.
>
> Btw, in case I want to allow some of the SLAVE repositories to be  
> able to do both "pull" and "push" of updates, will that be possible  
> too, or am I getting too greedy? :-). I tried creating an SVK  
> mirror of an SVN repository, modifying it with SVN and doing an  
> "SVK sync", but that failed with an error as follows:
>
> #pavan# /home/balaji/tmp> svk sync //paramedic
> no headrev at /usr/share/perl5/SVN/Mirror/Ra.pm line 159.
>

If people are committing only to a local branch of the slave repo, it  
should work just fine. (You might want a pre-commit hook to stop them  
from committing to the mirrored paths)

-jesse

> Thanks.
>
>  -- Pavan
>
> On 07/30/2007 02:35 PM, Jesse Vincent wrote:
>>>
>>> In summary, we were looking for some tool to create such a MASTER- 
>>> SLAVE structure, with the following conditions:
>>>
>>> 1. The users using the SLAVE repository should be able to  
>>> continue to use SVN clients.
>>>
>>> 2. The SLAVE should be able to "pull" updates from the master.
>>>
>>> 3. The SLAVE should *not* be able to "push" updates to the master.
>>>
>>> Will Pushmi be able to handle this?
>>>
>> Ok. That sounds a lot more like SVK than Pushmi.
>> Your slaves would do the following:
>> export SVKROOT=/home/svnmirror
>> svk mirror http://yourco.com/svn/project //mirror/project
>> svk sync -a
>> svk cp //mirror/project //local/project-ourbranch
>> and would then do the following in a cron job
>> SVKROOT=/home/svnmirror/ svk sync -a
>> Any time they wanted to merge your trunk into their branch, they'd  
>> need to
>> SVKROOT=/home/svnmirror/ svk pull //local/project-ourbranch
>> To share the svk repo via svn, you'd serve out /home/svnmirror/ 
>> local/project-ourbranch via your normal svn server mechanism.
>>> Thanks.
>> --------------------------------------------------------------------- 
>> ---
>> _______________________________________________
>> svk-devel mailing list
>> svk-devel at bestpractical.com
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel
>
> -- 
> Pavan Balaji,
> Mathematics and Computer Science,
> Argonne National Laboratory
> Ph: 630.252.3017
> http://www.mcs.anl.gov/~balaji
>
> _______________________________________________
> svk-devel mailing list
> svk-devel at bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/svk-devel
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/svk-devel/attachments/20070806/43fbf4d8/PGP.pgp


More information about the svk-devel mailing list