Difference between revisions of "CVS/En"

From TuxFamilyFAQ
Jump to navigationJump to search
Line 64: Line 64:
 
==Anonymous use of your CVS repository ==
 
==Anonymous use of your CVS repository ==
  
Comme avec l'utilisation en tant qu'utilisateur, il est possible de faire du CVS anonyme (anoncvs). Pour cela, il faut que votre CVS soit déclaré comme public, dans l'interface de VHFFS. Ce mode ne permet que d'avoir un accès en lecture au CVS, il faut correctement configurer la variable CVSROOT :
+
If your CVS repository is public, you will be able to do anonymous checkouts.
 +
first, set the CVSROOT variable :
 
  export CVSROOT=:pserver:anonymous@cvs.tuxfamily.org:/cvsroot/VOTREGROUPE/VOTRECVS
 
  export CVSROOT=:pserver:anonymous@cvs.tuxfamily.org:/cvsroot/VOTREGROUPE/VOTRECVS
  
Line 77: Line 78:
 
All the users of your group will be able to commit on the CVS. As an consequence, if you want to allow people to code on your soft, ask them to create an account on TuxFamily and then add their users in your group.
 
All the users of your group will be able to commit on the CVS. As an consequence, if you want to allow people to code on your soft, ask them to create an account on TuxFamily and then add their users in your group.
  
==Utilisation du viewvc==
+
==Using viewvc==
  
Il est possible de consulter votre repository via l'adresse :  
+
You can browse your repository here :
  
http://viewvc.tuxfamily.org/cvs_GROUPE_CVS/
+
http://viewvc.tuxfamily.org/cvs_GROUP_CVS/
  
Par exemple : http://viewvc.tuxfamily.org/cvs_tftest_tftest/
+
for example : http://viewvc.tuxfamily.org/cvs_tftest_tftest/
  
==Pour ceux qui n'ont pas le choix==
+
== For those who don't have the choice==
Si par malheur, vous êtes forcés de travailler sur un système propriétaire tel que Fenêtres(tm), sans autre moyen d'utiliser un vrai OS libre, utilisez au moins un logiciel libre tel que tortoiseCVS (GPL) : http://www.tortoisecvs.org/
 
  
Voici une documentation qui devrait vous aider : http://pole-modelisation.univ-bpclermont.fr/pub/tortoisecvs.php
+
If you have to work on a dirty operating system (between two system crash) without any way of using a clean and Libre OS, use at least a free software for your commits. for example [http://www.tortoisecvs.org/ TortoiseCVS] (GPL)
  
et pour la clé ssh + utilisation de tortoise : http://brian.fraval.org/documentation/cvs/book1.html
+
You should read this howto : http://pole-modelisation.univ-bpclermont.fr/pub/tortoisecvs.php
 +
and if you want to upload your ssh key with tortoise : http://brian.fraval.org/documentation/cvs/book1.html
  
= Remarques diverses =
+
= Tricks and Tips =
*SVN est plus puissant ;)
 
*Il est possible de déposer votre clé SSH sur les serveurs de Tuxfamily. Cela vous permet de ne pas taper votre mot de passe à chaque opération effectuée sur le serveur CVS. Pour la déposer, il faut copier le contenu de votre clé de le fichier ssh_keys qui est dans votre répertoire de départ (répertoire home). Ce répertoire home est celui sur lequel vous arrivez lorsque vous vous identifiez sur le serveur FTP. Ce fichier doit être placé et avoir un chmod de 700. Autrement dit, seul VOUS, utilisateur, avez le droit de lire, d'écrire et d'executer ce fichier.
 
  
= Liens utiles =
+
*SVN is more powerful ;)
 +
 
 +
*You can upload your SSH key ont TuxFamily's servers. This will allow you not to type your password each time that you do an operation on your CVS repository.
 +
Please copy your key in the file ssh_keys that is in your home directory. Don't forget to chmod 700 this file to be sure that you only can access it ;)
 +
 
 +
= Useful links=
  
 
*https://panel.tuxfamily.org/help/cvs.html
 
*https://panel.tuxfamily.org/help/cvs.html

Revision as of 22:19, 30 July 2007

CVS repository



Description

CVS is a coding tool that allows more than one person to commit code on a same software. CVS is going to keep all the version of your software during all the development period. CVS also support merging code from two branch. CVS is a client/server application.

Dependences

Creation

  • connect on the Panel
  • Select the group that will receive the new repository
  • Use the create button in the CVS section
  • Choose a repository name and validate the form.

Creation tips

  • Please do not choose a too generic name :) "repository, cvs, sourcecode" please be original !
  • As usual, fill up correctly the description field to avoid troubles with our moderators ;)

Moderation

This object is moderated. Please see the Moderation page

How to configure it (panel)

The only option you have on the panel is to choose if the repository should be public or not. This will allow anonymous checkout and browsing your code through the webcvs.

Configuration

As said below, a public repository can be accessed via the pserver and via TuxFamily's viewvc. A private one will require a login in any case.

How to manage my group's rights on this object

You can give some privileges to people of your group by using the ACL

How to destroy it

  • login on the panel
  • Select the group of your CVS
  • select the CVS repository you want to delete
  • use the delete button

How to use it

Using CVS as an user

First you have to set the CVSROOT variable.

export CVSROOT=:ext:user@cvs.tuxfamily.org:/cvsroot/YOURGROUP/YOURCVS

with:

  • user is your username on the panel
  • YOURGROUP is the group that owns the CVS repository
  • YOURCVS is the name of your repository

You can now happily commit all your crap ;)

Anonymous use of your CVS repository

If your CVS repository is public, you will be able to do anonymous checkouts. first, set the CVSROOT variable :

export CVSROOT=:pserver:anonymous@cvs.tuxfamily.org:/cvsroot/VOTREGROUPE/VOTRECVS

To checkout a module, type :

cvs co MYMODULE

To checkout the whole project:

cvs co .

Team coding

All the users of your group will be able to commit on the CVS. As an consequence, if you want to allow people to code on your soft, ask them to create an account on TuxFamily and then add their users in your group.

Using viewvc

You can browse your repository here :

http://viewvc.tuxfamily.org/cvs_GROUP_CVS/

for example : http://viewvc.tuxfamily.org/cvs_tftest_tftest/

For those who don't have the choice

If you have to work on a dirty operating system (between two system crash) without any way of using a clean and Libre OS, use at least a free software for your commits. for example TortoiseCVS (GPL)

You should read this howto : http://pole-modelisation.univ-bpclermont.fr/pub/tortoisecvs.php and if you want to upload your ssh key with tortoise : http://brian.fraval.org/documentation/cvs/book1.html

Tricks and Tips

  • SVN is more powerful ;)
  • You can upload your SSH key ont TuxFamily's servers. This will allow you not to type your password each time that you do an operation on your CVS repository.

Please copy your key in the file ssh_keys that is in your home directory. Don't forget to chmod 700 this file to be sure that you only can access it ;)

Useful links