01.09.2014 Views

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

The Linux Development Platform Configuring, Using, and ... - Classes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CH06.fm Page 188 Monday, October 7, 2002 9:06 PM<br />

188 Chapter 6 • Introduction to CVS<br />

Additionally, if you have not yet issued the remove comm<strong>and</strong>, you can retrieve a copy of<br />

the file from the repository by issuing an update comm<strong>and</strong>.<br />

# rm index.html<br />

# cvs update index.html<br />

U index.html<br />

6.4.10 Renaming Files within a Project<br />

<strong>The</strong>re is no direct method of renaming files within the CVS repository. In order to rename<br />

a file, you must remove the old name <strong>and</strong> add in the new one. Here is an example of renaming a<br />

file from oldfile to newfile.<br />

# cvs status oldfile<br />

============================================================<br />

File: oldfile<br />

Status: Up-to-date<br />

Working revision: 1.1<br />

Repository revision: 1.1<br />

oldfile,v<br />

Sticky Tag:<br />

(none)<br />

Sticky Date:<br />

(none)<br />

Sticky Options: (none)<br />

/usr/local/cvsroot/fuzion/<br />

# mv oldfile newfile<br />

# cvs remove oldfile<br />

cvs server: scheduling `oldfile' for removal<br />

cvs server: use 'cvs commit' to remove this file permanently<br />

# cvs add newfile<br />

cvs server: scheduling file `newfile' for addition<br />

cvs server: use 'cvs commit' to add this file permanently<br />

# cvs commit -m "Ren oldfile newfile" oldfile newfile<br />

Removing oldfile;<br />

/usr/local/cvsroot/fuzion/oldfile,v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!