Difference between revisions of "CVS Repositories"

From CS Support Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
===This page is under construction!===
 
===This page is under construction!===
  
 +
===Quick CVS Introduction===
 +
====Creating a Repository====
 +
You can create a cvs repository in your home directory:
 +
cvs -d ~/cvsroot init
 +
You will probabably want to modify your .profile file to contain the cvsroot and cvseditor variables.
 +
export CVSROOT=$HOME/cvsroot
 +
export CVSEDITOR=vi
  
====Create a repository====
 
To create a repository, run the cvs init command. It will set up an empty repository in the CVS root specified in the usual way. For example,
 
cvs -d /home/reh4j/repos init
 
would set up a repository called repos in the home directory of user reh4j.
 
  
====Import a project into your repository====
+
 
To import a file tree into your repository, use the cvs import command.
+
 
 +
===Repository Permissions===
 +
Any repository that you create will be owned by your and your [default] group. Only members of your group will be able to access your repository. For instance, if you are a member of csfaculty and create a repository, a student belonging to csgrads would not have the permissions to access your repository.
 +
 
 +
CVS only allows files to be controlled on a per directory basis, not on an individual one.
 +
 
 +
Possible solutions include:
 +
*Setting up a unix group containing the people who should be able to access the repository, and then ensure that the repository directory is owned by that group.
 +
*Hosting your repository remotely on the pserver and setting up accounts for those who need access
 +
 
 +
Email root to help set you up.
 +
 
 +
 
 +
===Collaborating with People Outside the Department===
 +
If you want people outside the department to have access to your repository, then you will need to host it remotely on the pserver.

Revision as of 15:16, 21 July 2006

This page is under construction!

Quick CVS Introduction

Creating a Repository

You can create a cvs repository in your home directory:

cvs -d ~/cvsroot init

You will probabably want to modify your .profile file to contain the cvsroot and cvseditor variables.

export CVSROOT=$HOME/cvsroot
export CVSEDITOR=vi



Repository Permissions

Any repository that you create will be owned by your and your [default] group. Only members of your group will be able to access your repository. For instance, if you are a member of csfaculty and create a repository, a student belonging to csgrads would not have the permissions to access your repository.

CVS only allows files to be controlled on a per directory basis, not on an individual one.

Possible solutions include:

  • Setting up a unix group containing the people who should be able to access the repository, and then ensure that the repository directory is owned by that group.
  • Hosting your repository remotely on the pserver and setting up accounts for those who need access

Email root to help set you up.


Collaborating with People Outside the Department

If you want people outside the department to have access to your repository, then you will need to host it remotely on the pserver.