Loading...
 

Support_CVS_access_from_the_command_line

A CVS repository is set up on cml.uni-bamberg.de. The following describes how to obtain access using CVS on the command line.

Prerequisites


Requirements

  • CVS client (preinstalled on CML Macs)
  • SSH (preinstalled on CML Macs)
  • LDAP-Account (your account as project member)

Setup

These instructions describe how to get access using the CVS command line client.
Setting of variables (using bash):
$:> export CVS_RSH="ssh"
$:> export CVSROOT=":ext:yourldapaccount@cml.uni-bamberg.de:/usr/local/cvsroot"

  • (alternatively to specifying CVSROOT you may use CVS' -d option)

  • Optionally you may change your editor (default is vi)
$:> export CVSEDITOR=youreditor


Commands


Add

  • To add new files you created to the repository:
$:>cvs add newfile
$:>yourldapaccount@cml.uni-bamberg.de's password: ****
cvs server: scheduling file 'newfile' for addition
cvs server: use 'cvs commit' to add this file permanently
$:>


Checkout

  • The repository contains a sample project (test) that you may use for testing purposes. To retrieve it from the repository use:
$:> cvs co test

  • or using the -d option
$:> cvs -d :ext:yourldapaccount@cml.uni-bamberg.de:/usr/local/cvsroot co test

$:>yourldapaccount@cml.uni-bamberg.de's password: ****
cvs server: Updating test
U test/readme.txt


Commit

  • Done with your work, you need to commit your changes to the repository:
$:> cvs commit

  • or specifying the files to commit
$:> cvs commit file1 file2 file3

cvs commit: Examining .
$:>yourldapaccount@cml.uni-bamberg.de's password: ****
Now your predefined editor opens to make some comments regarding your changes.
Checking in readme.txt;
/usr/local/cvsroot/test/readme.txt,v <-- readme.txt
new revision: 1.2; previous revision 1.1
done


Import

  • To import a new project to the CVS repository:
$:> cvs -d :ext:yourldapaccount@cml.uni-bamberg.de:/usr/local/cvsroot import -m
"Starting my own project" projectname vendortag start
$:>yourldapaccount@cml.uni-bamberg.de's password: ****
N projectname/dateiname

No conflicts created by this import
$:>


Users [toggle]

3 online users

Internal [toggle]

Chat [toggle]