Windows DatabaseebooksStatistical Information

LLE10091 : Howto add a kdevelop project to subversion and add it to the repository tree

Symptom:

You already have a kdevelop project and want to use subversion for concurrent versioning

Cause:

You started your program without cvs support

Solution:

When you have a project which compiles and just want to add it to a subversion repository you need to take the following steps.

- First you have to add the project to the repository.

- Then you have to checkout your newly created software project 

- Then you need to tell kdevelop to use subversion as your versioning system

- and now you can start developing with full subversion support. 

To add an already started project to your, already existing, repository you execute the following command:

svn import MyProgramDir file:///usr/local/svn/repos/MyProgram -m "This is the MyProgram Project"

Please note that you need to have created a subversion repository prior to importing the project. Note also that you might want another structure for your projects in the repository!

Now you have to do a checkout of the project:

svn checkout file:///usr/local/svn/repos/MyProgram MyNewProgramDir

Why is this necessary? Well, subversion will not only create the project you imported but also some subversion extra information. This information is not available whithout checking out the project first. You can compare the directory you imported with the one subversion created for you. Afterwards, you can delete the one you used for your import. You have it in subversion anyway.

To tell kdevelop that you have a project with subversion support you need to load the project into kdevelop, go to the "Project menu", select "Project options", click on "version control" and set it to subversion. You close kdevelop and safe your settings. If you open the same project again, you will find an etra menu item when clicking on a file under "File list" and if you have something in your IDE and click with the right mouse button, you will be presented with a subversion menu.

From this menu you can do the most usual operations immediatelly. Like, commit, add, remove, update, revert and even resolve conflicts. For other operations you will need the command line or you can use kdesvn as a GUI for subversion. I like to use the command line for "svn status" but sometimes like to use the GUI for convenience. 

 


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