swift       08/05/20 20:34:55

  Modified:             cvs-tutorial.xml
  Log:
  Add section on retrieving older version

Revision  Changes    Path
1.20                 xml/htdocs/doc/en/cvs-tutorial.xml

file : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?rev=1.20&view=markup
plain: 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?rev=1.20&content-type=text/plain
diff : 
http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?r1=1.19&r2=1.20

Index: cvs-tutorial.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- cvs-tutorial.xml    19 May 2008 19:45:31 -0000      1.19
+++ cvs-tutorial.xml    20 May 2008 20:34:55 -0000      1.20
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v 1.19 
2008/05/19 19:45:31 swift Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v 1.20 
2008/05/20 20:34:55 swift Exp $ -->
 
 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
 
@@ -10,7 +10,6 @@
 <author title="Author">
   <mail link="[EMAIL PROTECTED]">Daniel Robbins</mail>
 </author>
-
 <author title="Editor">
   <mail link="[EMAIL PROTECTED]">Xavier Neys</mail>
 </author>
@@ -25,8 +24,8 @@
 tutorial is for you.
 </abstract>
 
-<version>1.8</version>
-<date>2005-05-23</date>
+<version>1.9</version>
+<date>2008-05-20</date>
 
 <chapter>
 <title>Introduction</title>
@@ -894,6 +893,30 @@
 </body>
 </section>
 <section>
+<title>Retrieving an older version</title>
+<body>
+
+<p>
+CVS wouldn't be a good versioning system if you can't retrieve older versions
+from the repository. You can pull back files based on a specific date, but of
+course also on the revision number. The next example pulls back revision 1.202
+of <path>filename</path> and overwrites the current <path>filename</path> with
+this version:
+</p>
+
+<pre caption="Retrieving a file based on the revision number">
+$ <i>cvs update -p -r 1.202 filename &gt; filename</i>
+</pre>
+
+<p>
+If you want to pull back files based on their date, use the <c>-D</c> argument.
+You can use entire date/timestamps, but also relative names such as
+<e>yesterday</e> or <e>last week</e>.
+</p>
+
+</body>
+</section>
+<section>
 <title>Complete!</title>
 <body>
 



-- 
[email protected] mailing list

Reply via email to