|
Vorlesung Softwaretechnologie SS97 Univ.-Prof. Dr. Armin B. Cremers Günter Kniesel, Jens Wolff |
|---|
| 1. CVS Quick Hack | Das Notwendigste zum sofortigen Staren. |
| 2. CVS Überblick | Ein kurzer Überblick über die wichtigsten CVS Kommandos. |
| 3. CVS Manpages | Manpages zu CVS im HTTP Format. (Auf UNIX-Ebene geht natürlich auch man cvs) |
| 4. Troubleshooting | Bekannte Probleme und ihre Lösungen. |
mkdir $HOME/CVS
setenv CVSROOT $HOME/CVS
cvs init
cvs import -m 'Erstellung des Repositories' loesung start start
Usage: cvs import [-d] [-k subst] [-I ign] [-m msg] [-b branch]
[-W spec] repository vendor-tag release-tags...
-d Use the file's modification time as the time of import.
-k sub Set default RCS keyword substitution mode.
-I ign More files to ignore (! to reset).
-b bra Vendor branch id.
-m msg Log message.
-W spec Wrappers specification line.
mkdir $HOME/SWT_Loesungen
cd $HOME/SWT_Loesungen
cvs checkout loesung
cvs checkout [-ANPcflnps] [-r rev | -D date] [-d dir] [-k kopt] modules...
-A Reset any sticky tags/date/kopts.
-N Don't shorten module paths if -d specified.
-P Prune empty directories.
-c "cat" the module database.
-f Force a head revision match if tag/date not found.
-l Local directory only, not recursive
-n Do not run module program (if any).
-p Check out files to standard output (avoids stickiness).
-s Like -c, but include module status.
-r rev Check out revision or tag. (implies -P) (is sticky)
-D date Check out revisions as of date. (implies -P) (is sticky)
-d dir Check out into dir instead of module name.
-k kopt Use RCS kopt -k option on checkout.
-j rev Merge in changes made between current revision and rev.
Aktualisieren der Arbeitsumgebungcd $HOME/SWT_Loesungen/loesung
cvs update
Usage: cvs update [-APdflRp] [-k kopt] [-r rev|-D date] [-j rev]
[-I ign] [-W spec] [files...]
-A Reset any sticky tags/date/kopts.
-P Prune empty directories.
-d Build directories, like checkout does.
-f Force a head revision match if tag/date not found.
-l Local directory only, no recursion.
-R Process directories recursively.
-p Send updates to standard output (avoids stickiness).
-k kopt Use RCS kopt -k option on checkout.
-r rev Update using specified revision/tag (is sticky).
-D date Set date to update from (is sticky).
-j rev Merge in changes made between current revision and rev.
-I ign More files to ignore (! to reset).
-W spec Wrappers specification line.
Aktualisieren des Repositoriescvs commit loesung1.java
Usage: cvs commit [-nRlf] [-m msg | -F logfile] [-r rev] files...
-n Do not run the module program (if any).
-R Process directories recursively.
-l Local directory only (not recursive).
-f Force the file to be committed; disables recursion.
-F file Read the log message from file.
-m msg Log message.
-r rev Commit to this branch or trunk revision.
Hinzufügen neuer Dateienmkdir New
cvs add New
commit auch richtig ins
Repository zu kopieren.cd $HOME mkdir CVS setenv CVSROOT $HOME/CVS cvs init mkdir SWT_Loesungen cd SWT_Loesungen touch dummy cvs import -m 'Erstellung des Repositories' loesung start start cvs checkout loesung