Debian Codegraph @

Doc/cvs_basics.txt

raw
1
2 Connection to the CVS repository in Meudon
3 ------------------------------------------
4
5 cvs -d :pserver:[email protected]:/cvsroot login
6 password: anonymous
7
8
9 Downloading Lorene
10 ------------------
11
12 cvs -d :pserver:[email protected]:/cvsroot checkout Lorene
13
14 In each directory created under the directory Lorene, there is a subdirectory
15 CVS which contains the file Root with the line
16 :pserver:[email protected]:/cvsroot
17 This avoids to type the destination (option -d) each time you type a CVS
18 command. Also, the password is registred in the file .cvspass in your
19 home directory so that you don't need to type it again.
20
21 Updating a directory
22 --------------------
23
24 cd <directoty_name>
25 cvs update
26
27 This will download from Lorene repository in Meudon any new version
28 of files present in the directory and all subdirectories.
29 But it will not download any new subdirectory. In order to have them,
30 you should type instead
31
32 cvs update -d
33
34 It could be a good strategy to always use this last command.
35
36
37 Adding a new file
38 -----------------
39
40 To put in Lorene repository a file that you have created from scratch,
41 type
42 cvs add <file_name>
43 cvs commit
44
45
46 Committing your changes to the repository
47 -----------------------------------------
48
49 After having modified some files, you can send them to Lorene
50 repository by the command
51
52 cvs commit -m "comment about what you have done..."
53
54 If you don't specify the -m option, cvs will prompt you with some
55 editor (usually vi !, unless you setup the environment variable
56 $CVSEDITOR, i.e. add the line
57
58 setenv CVSEDITOR emacs
59
60 to your .tcshrc file).
61
62 File status
63 -----------
64
65 You can get the list of files in your working directory
66 which are different with respect to those in the repository by the
67 command
68
69 cvs -n -q update
70
71 To get the history of the successive versions of a given file, type
72
73 cvs log <file_name>
74
75
76 More documentation
77 ------------------
78
79 The man page of CVS is a valuable source of information:
80
81 man cvs
82
83 You can also have a look to the Postscript manual cvs.ps.
84 On Linux system, you locate it by
85
86 locate cvs.ps
87
88 (for instance: /usr/share/doc/cvs-1.11/cvs.ps)
89
90 WWW documentation:
91
92 Introduction to CVS: http://www.cvshome.org/docs/blandy.html
93 CVS home page: http://www.cvshome.org/
94
95
96
97
98
99