Latest

Archive

Community news

C++

Communities and Content

Databases

Editorials

Emacs

General

HTML

Java

Notices

PHP

XML

Apache

C++

Database

General

HTML

Java

Javascript

Linux

Object oriented programming

Open source

Perl

PHP

Python

Ruby

SOAP

XML

Suggest a link

Advertise on zez

Contribute

Contact us

About zez


Version Control management with CVS - Part 3



Importing a project

Once you've created a repository you probably want to import your existing projects into it or perhaps create new ones. The procedure is the same except that importing an existing project involves more files.

All following examples assumes that the CVSROOT environment variable is properly setup.

The first thing you need to do is place yourself, not your physical being ofcourse, in the directory where your project resides (or create a new directory). Now you need to make sure that only the files that should be in CVS are here. Temporary files, backup files and other automatically generated files are generally not what you want in CVS, if they are present either delete them or move them outside this directory.

The next thing is to decide where you want the project in the repository. It's common to categorize projects by either vendor, project type or programming language (or all if applicable). Examples are:

projects/cplusplus/bogo-search
mycompany/pig-latin
music/apollo


So to import our very own music player into the repository we do

cvs import music/apollo apollo-team initial


The two parameters after the music/apollo are the vendor and release tag. The vendor tag is usually your company name, your group name or yourself. The release tag is the initial tag name for your project and is usually something like initial, start or the version number of your imported project. Also remember to write a proper message when asked for it.

Once this is done you can checkout the project in another directory by entering

cvs co music/apollo


You can then enter music/apollo to find your project. Now is the time to check if all files has been imported in CVS, if not move them to your local CVS repository and add them. It's usually a good idea to make a backup of your old non-CVS version of your project.


<< Previous page | 1 | < 2 > | 3 | 4 | Next page >> | Printer-friendly page |

Comment List


There are no comments.


Forgot your password?

Register a new user

Results

Polls