Notas de Luis

CVS

Crear nuevo proyecto a partir de ficheros que ya existen

When you begin using CVS, you will probably already have several projects that can be put under CVS control. In these cases the easiest way is to use the import command. An example is probably the easiest way to explain how to use it. If the files you want to install in CVS reside in `dir', and you want them to appear in the repository as`$CVSROOT/yoyodyne’, you can do this:

  $ cd dir
  $ cvs import -m "Imported sources" yoyodyne yoyo start

Unless you supply a log message with the ‘-m’ flag, CVS starts an editor and prompts for a message. The string ‘yoyo’ is a vendor tag, and ‘start’ is a release tag. They may fill no purpose in this context, but since CVS requires them they must be present. See section Tracking third-party sources, for more information about them.

You can now verify that it worked, and remove your original source directory.

  $ cd ..
  $ mv dir dir.orig
  $ cvs checkout yoyodyne
  $ ls -R yoyodyne
  $ rm -r dir.orig

Cambiar major number

  $ cvs commit -r 7.0
  $ cvs update -A
computing/linux/cvs.txt · Última modificación: por 127.0.0.1