Windows DatabaseebooksStatistical Information

LLE10092 : Howto create a subversion repository to start with a concurrent versioning system

Symptom:

You want to create a new repository for svn with svnadmin

Cause:

none

Solution:

Subversion is a free and open source version control system. It manages files and directories, and the changes made to them, over time. A version control system, also called concurrent versioning system, is used for software development. It allows a team to work together and gives them the ability to track who has changed what, where and wenn in the sources.

Although it is normally used in team work, it can very usefull for a single programmer too.

To start with subversion, you need to install the program and add a repository.

To install subversion on a debian like system (e.g. kubuntu) you just need to execute:

apt-get install subversion subversion-tools

I prefer to install kdesnv,  kdesvn-kio-plugins and libsvnqt3 too. I use kdevelopment for my IDE (integrated development environment) which has a subversion plugin available.

After the installation, you can create a repository.  My repository is located in my home drive. Which should not be the case for developing in a team. Here we create a repository called repos in the /usr/local/svn directory.

svnadmin create /usr/local/svn/repos 

To import a project into the newly created repository you can execute the following:

svn import MyProgramDir file:///usr/local/svn/repos/MyProgramDir -m "My first program"

Please note that for making it even more professional, you should create a structure like:

MyProgramDir - Trunk

MyProgramDir - Tags

MyProgramDir - Branches

For more information about organising your svn repository you can consult the subversion book which is available for free.


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics