Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
test:cvs [2007/04/02 15:30] – created fantasaitest:cvs [2007/04/02 19:49] fantasai
Line 21: Line 21:
 </html> </html>
  
-===== Using CVS ===== 
  
-==== Setting ''$CVSROOT'' ====+===== Using Command-line CVS ===== 
 + 
 +==== Setting $CVSROOT ====
  
 <html> <html>
Line 32: Line 33:
       environment variable is usually the most convenient because then you       environment variable is usually the most convenient because then you
       only have to type it once; subsequent <code class="command">cvs</code>       only have to type it once; subsequent <code class="command">cvs</code>
- 
       commands will all use that <code>$CVSROOT</code> setting.</p>       commands will all use that <code>$CVSROOT</code> setting.</p>
  
Line 46: Line 46:
       </dl>       </dl>
       <p>where <var>cvsroot-string</var> is of the form       <p>where <var>cvsroot-string</var> is of the form
-        <code>:protocol:username@server:/path-to-repository</code>.</p+        <code>:protocol:username@server:/path-to-repository</code>(<strong>The 
 +        <var>cvsroot-string</varfor anonymous read-only access to dev.w3.org 
 +        is <code>:pserver:anonymous@dev.w3.org:/sources/public</code>.</strong>)</p>
     </div>     </div>
  
     <p>To use <code>-d</code> instead, add <kbd>-d <var>cvsroot-string</var></kbd>     <p>To use <code>-d</code> instead, add <kbd>-d <var>cvsroot-string</var></kbd>
       as the first argument after 'cvs' in each <code class="command">cvs</code>       as the first argument after 'cvs' in each <code class="command">cvs</code>
-      command.</p>+      command. For example:</p>
  
     <div class="example" title="Using the -d Option to Perform a Checkout">     <div class="example" title="Using the -d Option to Perform a Checkout">
Line 161: Line 162:
      <pre><kbd>cvs diff -pu8N path/to/file1 path/to/file2 ... > patch.out</kbd></pre>      <pre><kbd>cvs diff -pu8N path/to/file1 path/to/file2 ... > patch.out</kbd></pre>
 </html> </html>
 +
  
 ==== Committing Changes ==== ==== Committing Changes ====
Line 180: Line 182:
       patch author (<q>patch by <var>foo@example.com</var></q>) if written by someone       patch author (<q>patch by <var>foo@example.com</var></q>) if written by someone
       besides you.</p>       besides you.</p>
 +</html>
 +
  
 ==== Adding New Files ==== ==== Adding New Files ====
  
 +<html>
     <p>To add a file to the tree, first <strong><code class="command">cd</code> to its     <p>To add a file to the tree, first <strong><code class="command">cd</code> to its
       parent directory</strong> then type</p>       parent directory</strong> then type</p>
Line 194: Line 199:
  
     <pre><kbd>cvs add -kb <var>filename</var></kbd></pre>     <pre><kbd>cvs add -kb <var>filename</var></kbd></pre>
 +</html>
 +
  
 ==== Removing Files ==== ==== Removing Files ====
  
 +<html>
     <p>To remove a file from the tree, first delete your own copy, then, from     <p>To remove a file from the tree, first delete your own copy, then, from
       its parent directory, issue the command</p>       its parent directory, issue the command</p>
Line 207: Line 215:
     <p class="note">CVS will still keep the revision history for the removed     <p class="note">CVS will still keep the revision history for the removed
       file.</p>       file.</p>
 +</html>
 
test/cvs.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki