29.10.2012 Aufrufe

Chapter 9 Tuning a Debian system

Chapter 9 Tuning a Debian system

Chapter 9 Tuning a Debian system

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

<strong>Chapter</strong> 12. Version Control Systems 209<br />

Create a new CVS archive<br />

For,<br />

Then,<br />

ITEM VALUE MEANING<br />

source tree: ~/project-x All source codes<br />

Project name: project-x Name for this project<br />

Vendor Tag: Main-branch Tag for the entire branch<br />

Release Tag: Release-initial Tag for a specific release<br />

$ cd ~/project-x # dive into source directory<br />

... create a source tree ...<br />

$ cvs import -m "Start project-x" project-x Main-branch Release-initial<br />

$ cd ..; rm -R ~/project-x<br />

Work with CVS<br />

To work with project-x using the local CVS repository:<br />

$ cd # move to the work area<br />

$ cvs co project-x # get sources from CVS to local<br />

$ cd project-x<br />

... make changes to the content ...<br />

$ cvs diff -u # similar to diff -u repository/ local/<br />

$ cvs up -C modified_file # undo changes to a file<br />

$ cvs ci -m "Describe change" # save local sources to CVS<br />

$ vi newfile_added<br />

$ cvs add newfile_added<br />

$ cvs ci -m "Added newfile_added"<br />

$ cvs up # merge latest version from CVS<br />

... to create all newly created subdirectories from CVS, use<br />

... "cvs up -d -P" instead<br />

... watch out for lines starting with "C filename"<br />

... unmodified code is moved to ‘.#filename.version’<br />

... search for "" in filename<br />

$ cvs tag Release-1 # add release tag<br />

... edit further ...<br />

$ cvs tag -d Release-1 # remove release tag<br />

$ cvs ci -m "more comments"<br />

$ cvs tag Release-1 # re-add release tag<br />

$ cd # move back to the work area<br />

$ cvs co -r Release-initial -d old project-x

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!