At the blackboard University of Washington Department of Computer Science & Engineering
 How to enlist in the XML Toolkit project
  CSE Home  About Us    Search    Contact Info 

General CVS information

Specific to our repository

Sample CVS session

Suppose I have a binary file "xmltk-bin.pdf" that I want to check in and add a link to from the home page. Here is a sample session showing all the steps required to do this. There are a couple subtle points here. One, note that when working with the xmltk-web project, you might as well check it out under your ~/www directory, so that you can verify your changes in a web browser. Two, note the use of the "-kb" flag when adding the .pdf file. This flag is required for binary files. One difference in CVS's behavior with respect to binary files is that no history is kept, so be very careful, changes to them are irrevocable.

fiji% set CVSROOT=/homes/iws/tjgreen/cvsroot
fiji% cd ~/www
fiji% cvs checkout xmltk-web
cvs checkout: Updating xmltk-web
...
cvs checkout: Updating xmltk-web/xmltk_files
...
fiji% cp ~/xmltk-bin.pdf .
fiji% cvs add -kb xmltk-bin.pdf
cvs add: scheduling file `xmltk-bin.pdf' for addition
cvs add: use 'cvs commit' to add this file permanently
fiji% vi index.html
fiji% cvs diff
cvs diff: Diffing .
cvs diff: xmltk-bin.pdf is a new entry, no comparison available
Index: index.html
===================================================================
RCS file: /homes/iws/tjgreen/cvsroot/xmltk-web/index.html,v
retrieving revision 1.1
diff -r1.1 index.html
54c54
---
>   <LI>View the <A href="xmltk-bin.pdf">binary format specification</A> (PDF format)</LI>
cvs diff: Diffing xmltk_files
fiji% cvs commit -m "binary format spec from Ashish" xmltk-bin.pdf
RCS file: /homes/iws/tjgreen/cvsroot/xmltk-web/xmltk-bin.pdf,v
done
Checking in xmltk-bin.pdf;
/homes/iws/tjgreen/cvsroot/xmltk-web/xmltk-bin.pdf,v  <--  xmltk-bin.pdf
initial revision: 1.1
done
fiji% cvs commit -m "link to binary format spec, etc" index.html
Checking in index.html;
/homes/iws/tjgreen/cvsroot/xmltk-web/index.html,v  <--  index.html
new revision: 1.2; previous revision: 1.1
done


CSE logo Department of Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to tjgreen@u.washington.edu]