Concurrent Versions System

Aus Mikiwiki
Version vom 27. Februar 2010, 01:33 Uhr von Michi (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Das Concurrent Versions System / CVS ist eine Versionsverwaltung, die hauptsächlich bei der Programmierung verwendet wird.

Verwendung

Beispiele für Checkout

Checkout aller Inhalte aus sisis-tech.

$ cd Documents
$ export PATH=/usr/local/cvs1.10/bin:$PATH
$ export CVS_SERVER=/usr/local/cvs1.10/bin/cvs
$ export CVSROOT=:ext:kuhn@dublin:/cvs/techCvsRoot
$ cvs checkout sisis-tech

Checkout von Christians Entladetools.

$ cd software/TOOLS
$ export PATH=$PATH:/usr/local/cvs1.10/bin
$ export CVS_SERVER=/usr/local/cvs1.10/bin/cvs
$ export CVSROOT=:ext:sisis@dublin:/cvs/cvs_sisis
$ cvs checkout migration

Checkout des Erwerbungs-Clients.

$ cd software/TEST
$ export PATH=$PATH:/usr/local/cvs1.10/bin
$ export CVS_SERVER=/usr/local/cvs1.10/bin/cvs
$ export CVSROOT=:ext:kuhn@dublin:/cvs/cvs_sisis
$ cvs checkout -r V35pl2Branch clientew

Checkout der Dokumentation von sisis-fast.

$ cd Documents
$ export PATH=$PATH:/usr/local/cvs1.10/bin
$ export CVS_SERVER=/usr/local/cvs1.10/bin/cvs
$ export CVSROOT=:ext:sisis@dublin:/cvs/cvs_sisis/sisisfast
$ cvs checkout doc

Beispiel für Checkin

Einfügen der Datei "acpupsd.txt" in sisis-tech. Voraussetzung ist ein installierter CVS-Client.

Zugang zum techCVS als Benutzer "kuhn" von Rechner "emu" aus.

# su - kuhn
$ export CVS_SERVER=/usr/local/cvs1.10/bin/cvs
$ export CVSROOT=:ext:kuhn@dublin:/cvs/techCvsRoot
$ cvs checkout sisis-tech
cvs server: Updating sisis-tech
cvs server: Updating sisis-tech/Sisis
cvs checkout: move away sisis-tech/Sisis/HowtoSorttab.txt; it is in the way
C sisis-tech/Sisis/HowtoSorttab.txt
...

Nun wird die Datei "apcupsd.txt" mit den Rechten 644 nach "/home/kuhn/sisis-tech/howTo/systems" gestellt und in dieses Verzeichnis gewechselt.

$ cd sisis-tech/howTo/systems
$ cvs add apcupsd.txt
cvs server: scheduling file `apcupsd.txt' for addition
cvs server: use 'cvs commit' to add this file permanently
$ cvs com -m "1st versions" apcupsd.txt
RCS file: /cvs/techCvsRoot/sisis-tech/howTo/systems/apcupsd.txt,v
done
Checking in apcupsd.txt;
/cvs/techCvsRoot/sisis-tech/howTo/systems/apcupsd.txt,v <-- apcupsd.txt
initial revision: 1.1
done
$ mv apcupsd.txt /tmp
$ cvs update
cvs server: Updating .
U apcupsd.txt
$ cvs log apcupsd.txt
RCS file: /cvs/techCvsRoot/sisis-tech/howTo/systems/apcupsd.txt,v
Working file: apcupsd.txt
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2003/09/29 10:29:12; author: kuhn; state: Exp;
1st versions
===================================================================
$ echo "eof" >> apcupsd.txt
$ cvs diff apcupsd.txt
Index: apcupsd.txt
===================================================================
RCS file: /cvs/techCvsRoot/sisis-tech/howTo/systems/apcupsd.txt,v
retrieving revision 1.1
diff -r1.1 apcupsd.txt
336a337
> eof
$ cvs status apcupsd.txt
===================================================================
File: apcupsd.txt Status: Locally Modified
Working revision: 1.1
Repository revision: 1.1
/cvs/techCvsRoot/sisis-tech/howTo/systems/apcupsd.txt,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)

Weblinks

Herausgeber Sprache Webseitentitel Anmerkungen
country DE.gif Wikipedia ger Concurrent Versions Systemwbm Enzyklopädischer Artikel
country US.gif Wikipedia eng Concurrent Versions Systemwbm Enzyklopädischer Artikel