Differences

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

Link to this comparison view

Next revision
Previous revision
test:cvs [2007/04/02 15:30] – created fantasaitest:cvs [2014/12/09 15:48] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 //This document is licensed under the [[http://creativecommons.org/licenses/by-sa/2.0/|Creative Commons Attribution Share-Alike License 2.0]]. The [[http://developer.mozilla.org/tools/cvs/|original]] was written for [[http://www.mozilla.org/|mozilla.org]].// //This document is licensed under the [[http://creativecommons.org/licenses/by-sa/2.0/|Creative Commons Attribution Share-Alike License 2.0]]. The [[http://developer.mozilla.org/tools/cvs/|original]] was written for [[http://www.mozilla.org/|mozilla.org]].//
 +
  
 ===== What is CVS? ===== ===== What is CVS? =====
  
 <html> <html>
-  <p><dfn>CVS</dfn> is the <a href="https://www.cvshome.org/">Concurrent+  <p><dfn>CVS</dfn> is the <a href="http://www.nongnu.org/cvs/">Concurrent
     Versions System</a>. It lets multiple people work on the same set of     Versions System</a>. It lets multiple people work on the same set of
     project files at the same time without clobbering each others' changes,     project files at the same time without clobbering each others' changes,
Line 21: Line 22:
 </html> </html>
  
-===== Using CVS ===== 
  
-==== Setting ''$CVSROOT'' ====+===== Using Command-line CVS ===== 
 + 
 +==== Setting $CVSROOT ====
  
 <html> <html>
Line 32: Line 34:
       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 47:
       </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 163:
      <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 183:
       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 200:
  
     <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 216:
     <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