How to create a SVN branch ?
Stephan Kulow
coolo at kde.org
Thu Jul 21 11:14:53 CEST 2005
Am Donnerstag 21 Juli 2005 10:14 schrieb Tomas Mecir:
> Hi folks,
>
> so, everyone keeps telling me that I need to commit my changes to a
> branch, instead of simply keeping it home, then committing when things
> are in compileable state ... And herein lies the problem ... I've
> tried to read through the SVN handbook to find out how to create a
> branch, only to find out that the branching concept is very
> complicated, compared to cvs, where I had no problems.
>
> So - my question is:
> assume that I have a local copy with some modifications in it, that
> are not committed anywhere. How do I commit these into a branch,
> without losing'em upon branch creation ?
>
That depends a bit if you have some completly new code or if you branched
of from some other project.
You can see here the directory of current branches:
http://websvn.kde.org/branches/work/
If you have new code, then use svn import, e.g.
cd myproject
svn import https://svn.kde.org/home/kde/branches/work/soc-myproject
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
I hope I didn't confuse you too much ;)
Greetings, Stephan
More information about the Kde-soc
mailing list