Gentoo Archives: gentoo-doc-cvs

From: Sven Vermeulen <swift@××××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: cvs-tutorial.xml
Date: Tue, 20 May 2008 20:34:58
Message-Id: E1JyYXv-0005hO-ID@stork.gentoo.org
1 swift 08/05/20 20:34:55
2
3 Modified: cvs-tutorial.xml
4 Log:
5 Add section on retrieving older version
6
7 Revision Changes Path
8 1.20 xml/htdocs/doc/en/cvs-tutorial.xml
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?rev=1.20&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?rev=1.20&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml?r1=1.19&r2=1.20
13
14 Index: cvs-tutorial.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v
17 retrieving revision 1.19
18 retrieving revision 1.20
19 diff -u -r1.19 -r1.20
20 --- cvs-tutorial.xml 19 May 2008 19:45:31 -0000 1.19
21 +++ cvs-tutorial.xml 20 May 2008 20:34:55 -0000 1.20
22 @@ -1,5 +1,5 @@
23 <?xml version="1.0" encoding="UTF-8"?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v 1.19 2008/05/19 19:45:31 swift Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/cvs-tutorial.xml,v 1.20 2008/05/20 20:34:55 swift Exp $ -->
26
27 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
28
29 @@ -10,7 +10,6 @@
30 <author title="Author">
31 <mail link="drobbins@g.o">Daniel Robbins</mail>
32 </author>
33 -
34 <author title="Editor">
35 <mail link="neysx@g.o">Xavier Neys</mail>
36 </author>
37 @@ -25,8 +24,8 @@
38 tutorial is for you.
39 </abstract>
40
41 -<version>1.8</version>
42 -<date>2005-05-23</date>
43 +<version>1.9</version>
44 +<date>2008-05-20</date>
45
46 <chapter>
47 <title>Introduction</title>
48 @@ -894,6 +893,30 @@
49 </body>
50 </section>
51 <section>
52 +<title>Retrieving an older version</title>
53 +<body>
54 +
55 +<p>
56 +CVS wouldn't be a good versioning system if you can't retrieve older versions
57 +from the repository. You can pull back files based on a specific date, but of
58 +course also on the revision number. The next example pulls back revision 1.202
59 +of <path>filename</path> and overwrites the current <path>filename</path> with
60 +this version:
61 +</p>
62 +
63 +<pre caption="Retrieving a file based on the revision number">
64 +$ <i>cvs update -p -r 1.202 filename &gt; filename</i>
65 +</pre>
66 +
67 +<p>
68 +If you want to pull back files based on their date, use the <c>-D</c> argument.
69 +You can use entire date/timestamps, but also relative names such as
70 +<e>yesterday</e> or <e>last week</e>.
71 +</p>
72 +
73 +</body>
74 +</section>
75 +<section>
76 <title>Complete!</title>
77 <body>
78
79
80
81
82 --
83 gentoo-doc-cvs@l.g.o mailing list