2 | | '''Note: Old page, needs to be reviewed!''' |
3 | | |
4 | | |
5 | | |
6 | | == Presentation on Trac and Subversion == |
7 | | * From Martial's meeting give monday, the 22th of november, 2010 in [[BR]] |
8 | | http://dods.ipsl.jussieu.fr/orchidee/Trac_Subversion.pdf |
9 | | * WARNING : this presentation has been updated the 1st of december, 2010 : |
10 | | http://dods.ipsl.jussieu.fr/orchidee/Trac_Subversion_1.pdf |
11 | | |
12 | | == SVN commands == |
13 | | |
14 | | Please see [Meetings/Technical/Archives#a17112010 here] to understand SVN '''server tree and authorizations''' for ORCHIDEE. |
15 | | |
16 | | See this link : |
17 | | {{{ |
18 | | http://forge.ipsl.jussieu.fr/orchidee/browser |
19 | | }}} |
20 | | to watch the tree (only open directories). [[BR]] |
21 | | You can use trunk dir or tags/ORCHIDEE_1_9_5. |
22 | | |
23 | | === Subversion server === |
24 | | |
25 | | The right way to get a version is to use : |
26 | | {{{ |
27 | | svn co --username mylogin svn://forge.ipsl.jussieu.fr/orchidee/PATHORCHIDEE LOCALDIR |
28 | | }}} |
29 | | It will ask you for password. Please see section [Tools/Subversion#SVNConfigfiles SVNConfigfiles] if you don't want to enter |
30 | | your password every time. |
31 | | |
32 | | ORCHIDEE default login/password is avaible to read trunk and all tags directories (sechiba/...). |
33 | | |
34 | | |
35 | | === Subversion by ssh === |
36 | | |
37 | | This is the old way to work on SVN for ORCHIDEE. |
38 | | You can use it only if one admin of ORCHIDEE has given a login/password to you ! [[BR]] |
39 | | Then, you will have an access to all versions of the model.[[BR]] |
40 | | |
41 | | This is '''strickly forbidden''' for simple ORCHIDEE developpers ! [[BR]] |
42 | | |
43 | | Thank's to modify only your own reserved branch by this way. [[BR]] |
44 | | Because all the server will be accessible by this way. |
45 | | {{{ |
46 | | svn co svn+ssh://my_forge_login@forge.ipsl.jussieu.fr/ipsl/forge/projets/orchidee/svn/[trunk|tags|branches|perso] |
47 | | }}} |
48 | | |
49 | | == SVN Config files == |
50 | | |
51 | | They are in ~/.subversion directory. This directory must be open only for you ! as in [[BR]] |
52 | | {{{ |
53 | | /home/mylogin 2> ls -la .subversion/ |
54 | | total 104 |
55 | | drwx------ 3 mylogin mygroup 4096 2010-12-01 09:47 . |
56 | | }}} |
57 | | You must change the right if it is not "drwx------" (but "drwxr-xr-x" for example), like this : |
58 | | {{{ |
59 | | /home/mylogin 2> chmod -R og-rx .subversion/ |
60 | | }}} |
61 | | because your ORCHIDEE svn password will be write in some subdir and it is not safe. |
62 | | |
63 | | Two config files are in this .subversion dir : |
64 | | * config |
65 | | * server |
66 | | |
67 | | For config file, you may want to save yours ORCHIDEE password in .subversion tree. |
68 | | There will be no need to enter them again for each of your logins. You can switch on : |
69 | | * store-passwords = yes |
70 | | * store-auth-creds = yes |
71 | | Please read the comment to be sure it is what you want ! |
72 | | |
73 | | For server file, you may want to bypass Subversion message about clearly saving the password. You can |
74 | | switch on the store-plaintext-passwords option of groups section : |
75 | | {{{ |
76 | | [groups] |
77 | | [...] |
78 | | store-plaintext-passwords = yes |
79 | | }}} |