Tech Support


6. Configuring CVS Client

6.1 First Download the CVS Client Binaries

  • For Linux
  • wget ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/i386/dag/RPMS/lincvs-1.4.3-1.2.el4.rf.i386.rpm
  • wget ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el4/en/x86_64/dag/RPMS/lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
  • For Windows
  • http://sourceforge.net/projects/cvsgui/files/WinCvs/WinCvs%202.1.1/
    and download WinCvs2_1_1.zip file.
  • http://crossvc.com/download_xxl/Windows/Current/CrossVC-XXL-Setup-2.3-5.exe

6.2 Configuring CVS Client on Linux

  • Installing binary using rpm command.
    ~]$ rpm -ivh lincvs-1.4.3-1.2.el4.rf.i386.rpm or rpm -ivh lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
    depending on the os platfor whether it is 32bit or 64bit os, need to install the binaries.
    ~]$ sudo rpm -ivh /Softwares/Linux_soft/DVD/cvs/cvsclient/lincvs-1.4.3-1.2.el4.rf.x86_64.rpm
    Password:
    Preparing... ########################################### [100%]
    package lincvs-1.4.3-1.2.el4.rf.x86_64 is already installed
  • Now login as a usr1 and invoke the typing a command "lincvs".
    Usr1~]$ lincvs &
    you will be displayed with a window.

6.3 Creating a Profile

  • Open CVS and got to Menu → Config → Profile.


  • Click on Add


  • Click on Access and change to Password the fill other fields, as per your variables. Show example in the below pict.
    Click on ok.





  • Go to Menu → Project → Checkout → here you will check whether you will be able to access/browse the modules. Click on Browse modules and enter the password.
    Note:This is to test your login is accepted by cvs server.






    Enter the password and click ok.
    Once the password is accepted correctly, you will not find any error. Now click cancel and cancel.
  • Please Collect Profile Details from you Team lead or IT Admin.
    Required Profile details are.
    Version Control system: CVS
    Name : CVSTST
    User : User name
    Server : 192.168.11.5 (for local network) use cvs.cvsserver.com instead of 122.166.104.238 (to access from outside office)
    Repository : ex: /proj1/CVSDATA/cvsrepo (this you can get from Team Lead/IT Admin)
    Access : password

6.4 Importing Data for first time to Repository (Which is done by your Team lead or IT Admin

  • First Crate a folder that you want to add in Repository folder with a text file having some data in the folder.
    # mkdir Data
    # vim readme
    Hi,
    This is created by Vasant B A.
    For importing of data to CVS Repo.
    Kindly do not delte the readme file.
    Please Note:
    Kindly add one text file with at least minimum data whenever you want to add module/folder in cvsrepo-testdata folder.
    Regards
    Date: 16Mar2011
    :x (Save and exit)
  • Now you can Import the Data folder to CVS Repository with same name or different name. This folder will be the top folder for other folder or files which you will be saving in future.



  • Now click on either of the highlighted icon. As shown in above picture.
    You will get a Import windows shown in below picture.




    Now enter the required fields. The folder from where you are going to import, make sure importing folder should not be empty. It must have at least one readme.txt or a txt file containing some data, like the information of repository folder created by and created date. Then click on import. Here the vendor tag and Release tag must different, data must not be same. Once the data is imported you will find the below msg in cvs client window.
  • cmd: cvs -d ":pserver:usr1@192.168.11.5:/Proj1/CVSData/cvsrepo" -r import -I ! -I "RCS" -I "SCCS" -I "CVS" -I "CVS.adm" -I "RCSLOG" -I "cvslog.*" -I "tags" -I "TAGS" -I ".make.state" -I ".nse.depinfo" -I "*~" -I "#*" -I ".#*" -I ",*" -I "_$*" -I "*$" -I "*.old" -I "*.bak" -I "*.BAK" -I "*.orig" -I "*.rej" -I ".del-*" -I "*.a" -I "*.olb" -I "*.o" -I "*.obj" -I "*.so" -I "*.exe" -I "*.Z" -I "*.elc" -I "*.ln" -I "core" -m "First time of Data import to CVS repository folder." "CVStest_Data" CVS_Test_Data CVS_TEST_Data_13_Jan_2011 N cvsrepo/Readme.txt No conflicts created by this import

6.5 Checkout data from CVS Repository

  • Go to Project → Checkout or click on the highlighted icon, as shown in the below picture.









    Now Click on Ok.
    Now you will be asked to add for work bench.

6.6 Adding New folders or files to CVS Module.

Note:
  • Whenever you create a folder in your working area module please add a readme text file with some data. Without this you can not add/import the new folder to CVS Repository.
  • While adding files from non-control tab, if they are non-text files then add as a binary files.

6.7 Configuring CVS client in Linux using Konsole (Command Mode)

  • Login as Local User
    [Vasant@ganga ~]$ mkdir cvsworkarea (Here you can give name you required)
    [Vasant@ganga ~]$ export CVSROOT=':pserver:Vasant@122.166.104.238:/projdata/sciadminitrepo'
    syntax: export CVSROOT=':pserver:<username@ip address>:/<repository path>
    [Vasant@ganga cvsworkarea]$ cvs login
    Logging in to :pserver:Vasant@122.166.104.238:2401/projdata/sciadminitrepo
    CVS password:
    [Vasant@ganga cvsworkarea]$ cvs co <module name>
    (Module name you can get from Teamlead / Sys admin)
  • If every thing went fine you will not get any error. But display a last one line.
    cvs checkout: Updating <Module name>