You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Pablo F <ca...@googlemail.com> on 2006/12/07 19:40:41 UTC
How to synchronize two subversion servers?
Hi all,
I have a conceptual problem about subversion. The issue is that I want to
download the source code of a project and import it into my personal
subversion server to develop by myself the code. But I want to update the
modifications of the project in my personal subversion server as well. I
explain with more details in the following lines:
1. Checkout from, say tigris.org to tmp1 (to simplify the case I suppose the
project has only a file)
/tmp1$: *svn checkout* http://*svn*.tigris.org/repos/*svn*/trunk/project1
(version 234)
2. List the files I downloaded:
ls /tmp/tmp1
.svn
file1
3. I delete all .svn directories of tmp1.
4. I import the result to my server:
/tmp$:svn import -m "New import" tmp1 http://myserver.com/repos/test1
5. I work with my personal repository committing changes.
6. Sometime I'm in the version 20 of file1 and I want to update the changes
of the project repository, which it's now at version 250, in my personal
repository to make the version 21 of file1.I don't know how to manage this.
There is a special solution of how to synchronise these two servers?
Thanks a lot and sorry for this little mess!
Pablo F.
Re: How to synchronize two subversion servers?
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 7, 2006, at 13:40, Pablo F wrote:
> I have a conceptual problem about subversion. The issue is that I
> want to download the source code of a project and import it into my
> personal subversion server to develop by myself the code. But I
> want to update the modifications of the project in my personal
> subversion server as well. I explain with more details in the
> following lines:
You may want to ignore the fact that the remote project uses
Subversion, and simply follow the vendor branch strategy outlined in
the book:
http://svnbook.red-bean.com/en/1.2/svn.advanced.vendorbr.html
And use the svn_load_dirs.pl script to load new versions of the
remote project into your local repository:
http://svn.collab.net/repos/svn/trunk/contrib/client-side/
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: How to synchronize two subversion servers?
Posted by Ch...@qimonda.com.
You "own" the branch, it's your private repository. You can submit
code on your branch without affecting the code on the trunk. If you
decide you don't want the branch, you can delete it. If you decide
you want it, you can "svn merge" from the trunk anytime, provided
you use tags correctly so you don't merge twice. Then when you're
ready, you can "svn merge" your branch to the trunk. If done correctly
you will only merge the changes you made on the branch.
Isn't this the end that justify your means?
________________________________
From: Tim Hill [mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 7:15 PM
To: Fouts Christopher (QNA RTP PT PREV)
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two subversion servers?
Sorry ... branching.
On Dec 11, 2006, at 2:42 PM, <Ch...@qimonda.com>
<Ch...@qimonda.com> wrote:
What won't work, SVK or branching?
________________________________
From: Tim Hill [mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 5:30 PM
To: Fouts Christopher (QNA RTP PT PREV)
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two subversion
servers?
I don't see how this would work, unless a single
folder could be in two working copies at once?
On Dec 11, 2006, at 9:35 AM,
<Ch...@qimonda.com> <Ch...@qimonda.com> wrote:
Actually there is, via SVK, as someone
pointed out. But why
not just use a branch?
________________________________
From: Tim Hill
[mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 11:41 AM
To: Pablo F
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two
subversion servers?
There is no automatic way of doing this
that I'm aware of. I would maintain two distinct working copies; one for
the tigris copy and one for your local copy. Then, when you want to push
changes from one to the other, use a regular diff command to merge
edits, and then merge via subversion.
--Tim
On Dec 7, 2006, at 11:40 AM, Pablo F
wrote:
Hi all,
I have a conceptual problem about
subversion. The issue is that I want to download the source code of a
project and import it into my personal subversion server to develop by
myself the code. But I want to update the modifications of the project
in my personal subversion server as well. I explain with more details in
the following lines:
1. Checkout from, say tigris.org to tmp1
(to simplify the case I suppose the project has only a file)
/tmp1$: svn checkout
http://svn.tigris.org/repos/svn/trunk/project1 (version 234)
2. List the files I downloaded:
ls /tmp/tmp1
.svn
file1
3. I delete all .svn directories of
tmp1.
4. I import the result to my server:
/tmp$:svn import -m "New import" tmp1
http://myserver.com/repos/test1
5. I work with my personal repository
committing changes.
6. Sometime I'm in the version 20 of
file1 and I want to update the changes of the project repository, which
it's now at version 250, in my personal repository to make the version
21 of file1. I don't know how to manage this. There is a special
solution of how to synchronise these two servers?
Thanks a lot and sorry for this little
mess!
Pablo F.
Re: How to synchronize two subversion servers?
Posted by Tim Hill <dr...@comcast.net>.
Sorry ... branching.
On Dec 11, 2006, at 2:42 PM, <Ch...@qimonda.com>
<Ch...@qimonda.com> wrote:
> What won't work, SVK or branching?
>
> From: Tim Hill [mailto:drtimhill@comcast.net]
> Sent: Monday, December 11, 2006 5:30 PM
> To: Fouts Christopher (QNA RTP PT PREV)
> Cc: users@subversion.tigris.org
> Subject: Re: How to synchronize two subversion servers?
>
> I don't see how this would work, unless a single folder could be in
> two working copies at once?
>
> On Dec 11, 2006, at 9:35 AM, <Ch...@qimonda.com>
> <Ch...@qimonda.com> wrote:
>
>> Actually there is, via SVK, as someone pointed out. But why
>> not just use a branch?
>>
>> From: Tim Hill [mailto:drtimhill@comcast.net]
>> Sent: Monday, December 11, 2006 11:41 AM
>> To: Pablo F
>> Cc: users@subversion.tigris.org
>> Subject: Re: How to synchronize two subversion servers?
>>
>> There is no automatic way of doing this that I'm aware of. I would
>> maintain two distinct working copies; one for the tigris copy and
>> one for your local copy. Then, when you want to push changes from
>> one to the other, use a regular diff command to merge edits, and
>> then merge via subversion.
>>
>> --Tim
>>
>> On Dec 7, 2006, at 11:40 AM, Pablo F wrote:
>>
>>> Hi all,
>>>
>>> I have a conceptual problem about subversion. The issue is that I
>>> want to download the source code of a project and import it into
>>> my personal subversion server to develop by myself the code. But
>>> I want to update the modifications of the project in my personal
>>> subversion server as well. I explain with more details in the
>>> following lines:
>>>
>>> 1. Checkout from, say tigris.org to tmp1 (to simplify the case I
>>> suppose the project has only a file)
>>>
>>> /tmp1$: svn checkout http://svn.tigris.org/repos/svn/trunk/
>>> project1 (version 234)
>>>
>>> 2. List the files I downloaded:
>>>
>>> ls /tmp/tmp1
>>> .svn
>>> file1
>>>
>>> 3. I delete all .svn directories of tmp1.
>>> 4. I import the result to my server:
>>> /tmp$:svn import -m "New import" tmp1 http://myserver.com/repos/
>>> test1
>>> 5. I work with my personal repository committing changes.
>>> 6. Sometime I'm in the version 20 of file1 and I want to update
>>> the changes of the project repository, which it's now at version
>>> 250, in my personal repository to make the version 21 of file1. I
>>> don't know how to manage this. There is a special solution of how
>>> to synchronise these two servers?
>>>
>>> Thanks a lot and sorry for this little mess!
>>>
>>> Pablo F.
>>
>
RE: How to synchronize two subversion servers?
Posted by Ch...@qimonda.com.
What won't work, SVK or branching?
________________________________
From: Tim Hill [mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 5:30 PM
To: Fouts Christopher (QNA RTP PT PREV)
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two subversion servers?
I don't see how this would work, unless a single folder could be
in two working copies at once?
On Dec 11, 2006, at 9:35 AM, <Ch...@qimonda.com>
<Ch...@qimonda.com> wrote:
Actually there is, via SVK, as someone pointed out. But
why
not just use a branch?
________________________________
From: Tim Hill [mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 11:41 AM
To: Pablo F
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two subversion
servers?
There is no automatic way of doing this that I'm
aware of. I would maintain two distinct working copies; one for the
tigris copy and one for your local copy. Then, when you want to push
changes from one to the other, use a regular diff command to merge
edits, and then merge via subversion.
--Tim
On Dec 7, 2006, at 11:40 AM, Pablo F wrote:
Hi all,
I have a conceptual problem about
subversion. The issue is that I want to download the source code of a
project and import it into my personal subversion server to develop by
myself the code. But I want to update the modifications of the project
in my personal subversion server as well. I explain with more details in
the following lines:
1. Checkout from, say tigris.org to tmp1
(to simplify the case I suppose the project has only a file)
/tmp1$: svn checkout
http://svn.tigris.org/repos/svn/trunk/project1 (version 234)
2. List the files I downloaded:
ls /tmp/tmp1
.svn
file1
3. I delete all .svn directories of
tmp1.
4. I import the result to my server:
/tmp$:svn import -m "New import" tmp1
http://myserver.com/repos/test1
5. I work with my personal repository
committing changes.
6. Sometime I'm in the version 20 of
file1 and I want to update the changes of the project repository, which
it's now at version 250, in my personal repository to make the version
21 of file1. I don't know how to manage this. There is a special
solution of how to synchronise these two servers?
Thanks a lot and sorry for this little
mess!
Pablo F.
Re: How to synchronize two subversion servers?
Posted by Tim Hill <dr...@comcast.net>.
I don't see how this would work, unless a single folder could be in
two working copies at once?
On Dec 11, 2006, at 9:35 AM, <Ch...@qimonda.com>
<Ch...@qimonda.com> wrote:
> Actually there is, via SVK, as someone pointed out. But why
> not just use a branch?
>
> From: Tim Hill [mailto:drtimhill@comcast.net]
> Sent: Monday, December 11, 2006 11:41 AM
> To: Pablo F
> Cc: users@subversion.tigris.org
> Subject: Re: How to synchronize two subversion servers?
>
> There is no automatic way of doing this that I'm aware of. I would
> maintain two distinct working copies; one for the tigris copy and
> one for your local copy. Then, when you want to push changes from
> one to the other, use a regular diff command to merge edits, and
> then merge via subversion.
>
> --Tim
>
> On Dec 7, 2006, at 11:40 AM, Pablo F wrote:
>
>> Hi all,
>>
>> I have a conceptual problem about subversion. The issue is that I
>> want to download the source code of a project and import it into
>> my personal subversion server to develop by myself the code. But
>> I want to update the modifications of the project in my personal
>> subversion server as well. I explain with more details in the
>> following lines:
>>
>> 1. Checkout from, say tigris.org to tmp1 (to simplify the case I
>> suppose the project has only a file)
>>
>> /tmp1$: svn checkout http://svn.tigris.org/repos/svn/trunk/
>> project1 (version 234)
>>
>> 2. List the files I downloaded:
>>
>> ls /tmp/tmp1
>> .svn
>> file1
>>
>> 3. I delete all .svn directories of tmp1.
>> 4. I import the result to my server:
>> /tmp$:svn import -m "New import" tmp1 http://myserver.com/repos/test1
>> 5. I work with my personal repository committing changes.
>> 6. Sometime I'm in the version 20 of file1 and I want to update
>> the changes of the project repository, which it's now at version
>> 250, in my personal repository to make the version 21 of file1. I
>> don't know how to manage this. There is a special solution of how
>> to synchronise these two servers?
>>
>> Thanks a lot and sorry for this little mess!
>>
>> Pablo F.
>
RE: Re: How to synchronize two subversion servers?
Posted by Ch...@qimonda.com.
Actually there is, via SVK, as someone pointed out. But why
not just use a branch?
________________________________
From: Tim Hill [mailto:drtimhill@comcast.net]
Sent: Monday, December 11, 2006 11:41 AM
To: Pablo F
Cc: users@subversion.tigris.org
Subject: Re: How to synchronize two subversion servers?
There is no automatic way of doing this that I'm aware of. I
would maintain two distinct working copies; one for the tigris copy and
one for your local copy. Then, when you want to push changes from one to
the other, use a regular diff command to merge edits, and then merge via
subversion.
--Tim
On Dec 7, 2006, at 11:40 AM, Pablo F wrote:
Hi all,
I have a conceptual problem about subversion. The issue
is that I want to download the source code of a project and import it
into my personal subversion server to develop by myself the code. But I
want to update the modifications of the project in my personal
subversion server as well. I explain with more details in the following
lines:
1. Checkout from, say tigris.org to tmp1 (to simplify
the case I suppose the project has only a file)
/tmp1$: svn checkout
http://svn.tigris.org/repos/svn/trunk/project1 (version 234)
2. List the files I downloaded:
ls /tmp/tmp1
.svn
file1
3. I delete all .svn directories of tmp1.
4. I import the result to my server:
/tmp$:svn import -m "New import" tmp1
http://myserver.com/repos/test1
5. I work with my personal repository committing
changes.
6. Sometime I'm in the version 20 of file1 and I want to
update the changes of the project repository, which it's now at version
250, in my personal repository to make the version 21 of file1. I don't
know how to manage this. There is a special solution of how to
synchronise these two servers?
Thanks a lot and sorry for this little mess!
Pablo F.
Re: How to synchronize two subversion servers?
Posted by Tim Hill <dr...@comcast.net>.
There is no automatic way of doing this that I'm aware of. I would
maintain two distinct working copies; one for the tigris copy and one
for your local copy. Then, when you want to push changes from one to
the other, use a regular diff command to merge edits, and then merge
via subversion.
--Tim
On Dec 7, 2006, at 11:40 AM, Pablo F wrote:
> Hi all,
>
> I have a conceptual problem about subversion. The issue is that I
> want to download the source code of a project and import it into my
> personal subversion server to develop by myself the code. But I
> want to update the modifications of the project in my personal
> subversion server as well. I explain with more details in the
> following lines:
>
> 1. Checkout from, say tigris.org to tmp1 (to simplify the case I
> suppose the project has only a file)
>
> /tmp1$: svn checkout http://svn.tigris.org/repos/svn/trunk/
> project1 (version 234)
>
> 2. List the files I downloaded:
>
> ls /tmp/tmp1
> .svn
> file1
>
> 3. I delete all .svn directories of tmp1.
> 4. I import the result to my server:
> /tmp$:svn import -m "New import" tmp1 http://myserver.com/repos/test1
> 5. I work with my personal repository committing changes.
> 6. Sometime I'm in the version 20 of file1 and I want to update the
> changes of the project repository, which it's now at version 250,
> in my personal repository to make the version 21 of file1. I don't
> know how to manage this. There is a special solution of how to
> synchronise these two servers?
>
> Thanks a lot and sorry for this little mess!
>
> Pablo F.
RE: How to synchronize two subversion servers?
Posted by Ch...@qimonda.com.
Won't it just be easier to create your branch off the project
repos and do your work there? Your branch is essentially
your "private" repository. Of course if you're not allowed
to create a branch that's an issue.
________________________________
From: Pablo F [mailto:caladris@googlemail.com]
Sent: Thursday, December 07, 2006 2:41 PM
To: users@subversion.tigris.org
Subject: How to synchronize two subversion servers?
Hi all,
I have a conceptual problem about subversion. The issue is that
I want to download the source code of a project and import it into my
personal subversion server to develop by myself the code. But I want to
update the modifications of the project in my personal subversion server
as well. I explain with more details in the following lines:
1. Checkout from, say tigris.org to tmp1 (to simplify the case I
suppose the project has only a file)
/tmp1$: svn checkout
http://svn.tigris.org/repos/svn/trunk/project1 (version 234)
2. List the files I downloaded:
ls /tmp/tmp1
.svn
file1
3. I delete all .svn directories of tmp1.
4. I import the result to my server:
/tmp$:svn import -m "New import" tmp1
http://myserver.com/repos/test1
5. I work with my personal repository committing changes.
6. Sometime I'm in the version 20 of file1 and I want to update
the changes of the project repository, which it's now at version 250, in
my personal repository to make the version 21 of file1. I don't know how
to manage this. There is a special solution of how to synchronise these
two servers?
Thanks a lot and sorry for this little mess!
Pablo F.
AW: How to synchronize two subversion servers?
Posted by Felix Gilcher <gi...@exozet.com>.
You're not saying much about the reasons you're doing this but i suspect you might want to have a look at svk (http://svk.bestpractical.com/view/HomePage). It is a distributed versioning system build on top of svn.
regards
felix
Pablo F <ma...@googlemail.com> schrieb am Donnerstag, 7. Dezember 2006 20:41:
> Hi all,
>
> I have a conceptual problem about subversion. The issue is
> that I want to download the source code of a project and
> import it into my personal subversion server to develop by
> myself the code. But I want to update the modifications of
> the project in my personal subversion server as well. I
> explain with more details in the following lines:
>
> 1. Checkout from, say tigris.org to tmp1 (to simplify the
> case I suppose the project has only a file)
>
> /tmp1$: svn checkout
> http://svn.tigris.org/repos/svn/trunk/project1 (version 234)
>
> 2. List the files I downloaded:
>
> ls /tmp/tmp1
> .svn
> file1
>
> 3. I delete all .svn directories of tmp1.
> 4. I import the result to my server:
>
> /tmp$:svn import -m "New import" tmp1 http://myserver.com/repos/test1
>
> 5. I work with my personal repository committing changes.
> 6. Sometime I'm in the version 20 of file1 and I want to
> update the changes of the project repository, which it's now
> at version 250, in my personal repository to make the version
> 21 of file1. I don't know how to manage this. There is a
> special solution of how to synchronise these two servers?
>
> Thanks a lot and sorry for this little mess!
>
> Pablo F.
--
Felix Gilcher
Head of IT Development
Exozet Berlin GmbH
Rotherstraße 20
10245 Berlin
eMail: gilcher@exozet.com
URL: www.exozet.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org