Czech language
Subversion on Linux
Subversion on sourceforge.net
Subversion client for KDE
CVS to Subversion
07.03.19
Subversion
We must intall following packages:
subversion
subversion-devel
kdesvn
Checkout your project from sourceforge.net
svn co https://svn.sourveforge.net/svnroot/yourproject yourproject
This is the top of the Subversion repository.
yourproject/trunk/ ......... The latest development sources. When people say
"Get the head of trunk", they mean the latest
revision of this directory tree.
yourproject/branches/ ...... Various development branches. Typically a branch
contains a complete copy of trunk/, even if the
changes are isolated to one subdirectory. Note
that branch copies are generally removed after
they've been merged back into trunk, so what's in
branches/ now does not reflect all the branches
that have ever been created.
yourproject/tags/ .......... Snapshots of releases. As a general policy, we
don't change these after they're created; if
something needs to change, we move it to
branches and work on it there.
Subversion client for KDE
Subversion client for KDE is
kdesvn
http://www.alwins-world.de/programs/kdesvn/
Update, commit, add file (directory), delete file (directory), logs, difference between revisions ... all is very intuitive.
Create Branches, tags.
Branches and tags is created by copy.
1. Select project in trunk directory.
2. Select
Subversion->General->Copy
Type for examle
branches/yourproject_0_1
for brach version 0.1
or
tags/yourproject_0_1
for tag version 0.1
3. Now we can modify some files in new branch
branches/yourproject_0_1
Alternatively we can use the konsole command:
svn copy trunk branches/yourproject_0_1 -m "I create new branch"
or
svn copy trunk tags/yourproject_0_1 -m "I create new tag"
Merge
If we will trasfer from our branch to trunk we select
Subversion->General->Merge...
and set
Source 1: trunk/yourproject
Source 2: branches/yourproject_0_1
Output to: trunk/yourproject
Start with revision: WORKING
Stop with revision: WORKING
Alternatively we can use the konsole command:
svn merge -r 1:COMMITTED branches/yourproject_0_1 trunk
Local subversion
Create new repository
svnadmin create /path/to/reposImport project to repository
svn import /tmp/localproject file:///path/to/repos/svnroot-localproject -m "Initial import"Checkout project from repository
In working directory, for example "/home/username/work/" write command:
svn co file:///path/to/repos/svnroot-localproject localproject
In working directory now created new directory "localproject"
Create normal directory infrastructure (trunk, tags, branches)
In "localproject" directory write commands:
svn mkdir trunk tags branches
svn commit -m "Create normal infrastructure"
CVS to Subversion
We must intall following packages:
cvs2svn
python
rcs
Now we type to the console
cvs2svn -s file:///path/to/repos/svnroot-localproject CVSROOT
and checkout this project from subversion repository
svn co file:///path/to/repos/svnroot-localproject localproject
Problems
If command
svn update
output is error message like:
svn: Failed to add directory 'k3dengine': object of the same name is already scheduled for addition
we try to resolve
Subversion->Working copy->Revert current changes
home / cvs