You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by dhanushka ranasinghe <pa...@gmail.com> on 2012/03/12 15:51:51 UTC

svnsync between repos

Hi..

svnsyn happen between two repos right ?  , is it possible to use svnsync to
sync part of a repository ( foder in side svn like trunk) to  separate new
repository

Eg--

here trunk is folder inside the "svn repository "repo"


http:/svn.master.com/repo/trunk/ ----- svnsync ---- -> http//
svn.mirror.com/newrepo/


Thank You
Dhanushka

Re: svnsync between repos

Posted by Jan Keirse <ja...@tvh.com>.
On Mon, Mar 12, 2012 at 3:51 PM, dhanushka ranasinghe
<pa...@gmail.com> wrote:
>
> Hi..
>
> svnsyn happen between two repos right ?  , is it possible to use svnsync to sync part of a repository ( foder in side svn like trunk) to  separate new repository
>
> Eg--
>
> here trunk is folder inside the "svn repository "repo"
>
>
> http:/svn.master.com/repo/trunk/ ----- svnsync ---- -> http//svn.mirror.com/newrepo/
>

yes it is, this is explicitly mentioned in the manual:

http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync-partial

Kind Regards,

JAN KEIRSE

-- 
DISCLAIMER ****

http://www.tvh.com/newen2/emaildisclaimer/default.html 

"This message is delivered to all addressees subject to the conditions
set forth in the attached disclaimer, which is an integral part of this
message."

Re: svnsync between repos

Posted by Les Mikesell <le...@gmail.com>.
On Mon, Mar 12, 2012 at 10:10 AM, dhanushka ranasinghe
<pa...@gmail.com> wrote:
>
> is there any issues if i do that sync  and ask users to use new repo to
> commit, what happen to revision history.. is it will be consistent

You can't continue to sync while using the repo for other commits -
you have to copy and cut over completely.  And unless the new copy is
an exact, complete copy you will need to have a different uuid for the
copy and do new checkouts of all the working copies.  Also, the
contents of the conf and hooks directories aren't copied by svnsync so
the new instance will need some setup work.  You will get all the
history revisions at least for the path you target - not sure what
happens if some history is outside that range - like something
imported at the root level, then moved under the trunk directory if
you only sync starting with trunk.

-- 
  Les Mikesell
     lesmikesell@gmail.com

Re: svnsync between repos

Posted by dhanushka ranasinghe <pa...@gmail.com>.
Hi..guys


is there any issues if i do that sync  and ask users to use new repo to
commit, what happen to revision history.. is it will be consistent

Thank You
Dhanushka



On 12 March 2012 20:31, Jeyanthan <je...@collab.net> wrote:

> Hi Dhanushka,
>
> As of Subversion 1.5, it is possible to limit svnsync to a
> subdirectory of the master repository.
>
> $ svnsync init file://`pwd`/dest
> http://svn.master.com/repo/**trunk <http://svn.master.com/repo/trunk>
>
> $ svnsync sync file://`pwd`/dest
>
> --
> Regards,
> Jeyanthan
>
>
> On Monday 12 March 2012 08:21 PM, dhanushka ranasinghe wrote:
>
>> Hi..
>>
>> svnsyn happen between two repos right ?  , is it possible to use svnsync
>> to sync part of a repository ( foder in side svn like trunk) to
>> separate new repository
>>
>> Eg--
>>
>> here trunk is folder inside the "svn repository "repo"
>>
>>
>> http:/svn.master.com/repo/**trunk/ <http://svn.master.com/repo/trunk/> <
>> http://svn.master.com/repo/**trunk/ <http://svn.master.com/repo/trunk/>>
>>
>> ----- svnsync ---- -> http//svn.mirror.com/newrepo/
>> <http://svn.mirror.com/**newrepo/ <http://svn.mirror.com/newrepo/>>
>>
>>
>> Thank You
>> Dhanushka
>>
>>
>>

Re: svnsync between repos

Posted by Jeyanthan <je...@collab.net>.
Hi Dhanushka,

As of Subversion 1.5, it is possible to limit svnsync to a
subdirectory of the master repository.

$ svnsync init file://`pwd`/dest
http://svn.master.com/repo/trunk

$ svnsync sync file://`pwd`/dest

-- 
Regards,
Jeyanthan

On Monday 12 March 2012 08:21 PM, dhanushka ranasinghe wrote:
> Hi..
>
> svnsyn happen between two repos right ?  , is it possible to use svnsync
> to sync part of a repository ( foder in side svn like trunk) to
> separate new repository
>
> Eg--
>
> here trunk is folder inside the "svn repository "repo"
>
>
> http:/svn.master.com/repo/trunk/ <http://svn.master.com/repo/trunk/>
> ----- svnsync ---- -> http//svn.mirror.com/newrepo/
> <http://svn.mirror.com/newrepo/>
>
>
> Thank You
> Dhanushka
>
>