[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to create a branch from a remote repository

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2007-02-08 13:45:11 CET

On Thursday 08 February 2007 13:33, thomas Armstrong wrote:
> Using subversion v1.4.2 on Linux, I want to create a branch from a
> trunk hosted in a remoted server.

The Subversion-specific branching and merging is only available within a
repository. In order to follow an external repository, you could use svnsync
(not sure if that allows only following or also local changes) or
svn_load_dirs.pl which also works with sources from non-SVN repositories.

> Steps I followed:
>
> 1) downloaded the trunk on /home/svn-repositories/myproject/
> []# svn co http://remoteserver.com/project trunk

Okay, now you have a working copy. Since you won't commit any changes to the
remote repository, you could as well have used 'export' instead
of 'checkout'.

> 2) created the branch
> []# cd /home/svn-repositories/myproject/
> []# svnadmin create branch
> []# chown -R apache.apache branch
> []# chmod a+x .
> []# vi /etc/httpd/conf.d/subversion.conf
> []# /etc/rc.d/init.d/httpd restart
> http://myserver/myproject/branch/ works

Hmmm, this is not a branch in SVN-slang but rather a repository.

> But I don't know how to copy the contents of 'trunk' to 'branch', or
> how to use 'svn merge'

You can't as already mentioned. The only tool to copy changes is svnsync, and
I'm not sure it is applicable in your case.

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 8 13:45:40 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.