How to create a SVN branch ?

Reinhold Kainhofer reinhold at kainhofer.com
Thu Jul 21 12:17:46 CEST 2005


On Thursday 21 July 2005 11:34, Tomas Mecir wrote:
> On 7/21/05, Stephan Kulow <coolo at kde.org> wrote:
> > If you branch of from e.g. kspread, then do
> > svn copy https://svn.kde.org/home/kde/trunk/koffice/kspread
> > https://svn.kde.org/home/kde/branches/work/soc-mykspread svn co
> > https://svn.kde.org/home/kde/branches/work/soc-mykspread
> > cd soc-mykspread
> > <do your changes to it - including svn add>
> > svn commit
>
> Hmm ... So, does this mean that I need to checkout to a new directory,
> then copy modified files, then commit ? Can't it be done directly ?

Probably not directly. But what you can do:

1) Make that diff and store it to a safe location (i.e. *not* in your svn 
checkout). The same for all new files.

2) Revert those changes in the svn checkout (just to make sure, I don't know 
how svn handles a svn switch when there are local changes)

3) Branch

4) Instead of checking out the whole branch, just do a svn switch in your old 
checkout to the new location (=branch). Now you'll have a checkout of the 
branch instead of trunk.

5) apply the patch and go on as described in the other mails.

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer / KPilot maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-soc/attachments/20050721/7906bf93/attachment.pgp


More information about the Kde-soc mailing list