You already have a kdevelop project and want to use subversion for concurrent versioning
You started your program without cvs support
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!
About the Author
Author: Wim Peeters - Keskon GmbH & Co. KG
Wim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.