Project

General

Profile

UsingRepositories » History » Version 24

Laurenz Gamper, 01/22/2013 08:16 AM

1 7 Brian Nord
h1. SVN
2 7 Brian Nord
3 22 Laurenz Gamper
* [[UsingRepositories#svn_access|SVN Access]]
4 23 Laurenz Gamper
* [[UsingRepositories#svn_intro|SVN Introduction]]
5 23 Laurenz Gamper
* [[UsingRepositories#svn_checkout|SVN Checkout]]
6 23 Laurenz Gamper
* [[UsingRepositories#run_pipeline|Running the pipeline]]
7 20 Laurenz Gamper
8 20 Laurenz Gamper
9 23 Laurenz Gamper
10 20 Laurenz Gamper
h1(#svn_access). SVN Access
11 20 Laurenz Gamper
12 7 Brian Nord
To Access the DESpec SVN, you need:
13 7 Brian Nord
* a services account
14 7 Brian Nord
* to be a member of the subprojects of DESpec
15 7 Brian Nord
* a kerberos ticket
16 7 Brian Nord
* a svn client
17 7 Brian Nord
18 7 Brian Nord
h2. Recommended SVN Clients
19 7 Brian Nord
20 7 Brian Nord
* Windows: TortoiseSVN http://tortoisesvn.tigris.org/
21 7 Brian Nord
* Mac: Versions http://versionsapp.com/
22 7 Brian Nord
* command line
23 7 Brian Nord
24 7 Brian Nord
25 7 Brian Nord
h2. Services Account at Fermilab
26 7 Brian Nord
27 7 Brian Nord
How to get a services account:
28 7 Brian Nord
https://cdcvs.fnal.gov/redmine/projects/despec/wiki/DESpecwikiAccess
29 7 Brian Nord
30 7 Brian Nord
h2. Member of the Subprojects
31 7 Brian Nord
32 10 Laurenz Gamper
If you would like to have write access, email Brian or Laurenz, so we can add you to the DESpec project. If you don't need write access, look at the section Anonymous SVN.
33 7 Brian Nord
34 7 Brian Nord
h2. Kerberos
35 7 Brian Nord
36 14 Laurenz Gamper
h3. How to set up kerberos
37 14 Laurenz Gamper
38 14 Laurenz Gamper
<pre>
39 14 Laurenz Gamper
$ mv /etc/krb5.conf /etc/krb5.conf.bak
40 14 Laurenz Gamper
$ cd /etc
41 14 Laurenz Gamper
$ wget http://security.fnal.gov/krb5.conf
42 14 Laurenz Gamper
$ echo "host cdcvs.fnal.gov
43 14 Laurenz Gamper
   ForwardX11 = no
44 14 Laurenz Gamper
   GSSAPIAuthentication yes
45 14 Laurenz Gamper
   GSSAPIDelegateCredentials yes" >> ~/.ssh/config
46 14 Laurenz Gamper
$ kinit -f your-fnal-username
47 14 Laurenz Gamper
$ klist
48 14 Laurenz Gamper
</pre>
49 14 Laurenz Gamper
50 14 Laurenz Gamper
The final klist should show your kerberos ticket and the svn can be checked out now using the svn checkout command below.
51 14 Laurenz Gamper
52 15 Laurenz Gamper
53 15 Laurenz Gamper
h3. Links with further documentation
54 13 Laurenz Gamper
55 1 Brian Nord
http://www.fnal.gov/docs/strongauth/macadmin.html#55292
56 7 Brian Nord
http://kb.mit.edu/confluence/display/istcontrib/Acquiring+Kerberos+Tickets+in+Mac+OS+X+10.7+(Lion)+or+OS+X+10.8+(Mountain+Lion)
57 16 Laurenz Gamper
http://fermilinux.fnal.gov/documentation/security/kerberos-newer-linux/
58 1 Brian Nord
59 23 Laurenz Gamper
h1(#svn_intro). SVN Intro
60 16 Laurenz Gamper
61 1 Brian Nord
http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html
62 16 Laurenz Gamper
63 20 Laurenz Gamper
h2. Checkin/Import 
64 1 Brian Nord
65 20 Laurenz Gamper
One need not supply a URL for commit.  SVN automatically contacts external server
66 1 Brian Nord
<pre>
67 20 Laurenz Gamper
svn commit -m "your message"  
68 20 Laurenz Gamper
</pre>
69 20 Laurenz Gamper
70 20 Laurenz Gamper
71 23 Laurenz Gamper
h1(#svn_checkout). SVN Checkout
72 20 Laurenz Gamper
73 17 Laurenz Gamper
h3. Source Code
74 18 Laurenz Gamper
75 17 Laurenz Gamper
<pre>
76 17 Laurenz Gamper
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/trunk despec
77 17 Laurenz Gamper
</pre>
78 17 Laurenz Gamper
79 19 Laurenz Gamper
h3. Data
80 17 Laurenz Gamper
81 17 Laurenz Gamper
<pre>
82 17 Laurenz Gamper
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/data data
83 17 Laurenz Gamper
</pre>
84 1 Brian Nord
85 10 Laurenz Gamper
h3. Paper
86 1 Brian Nord
87 1 Brian Nord
<pre>
88 1 Brian Nord
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/paper paper
89 9 Brian Nord
</pre>
90 1 Brian Nord
91 1 Brian Nord
92 1 Brian Nord
This will create a directory called despec containing a checkout the complete pipeline.
93 1 Brian Nord
94 1 Brian Nord
h1. Anonymous SVN
95 1 Brian Nord
96 1 Brian Nord
<pre>
97 12 Laurenz Gamper
svn export http://cdcvs.fnal.gov/subversion/simulation_pipeline-main/trunk/ despec
98 1 Brian Nord
</pre>
99 1 Brian Nord
100 23 Laurenz Gamper
h1{#run_code}. Run the Code
101 1 Brian Nord
102 24 Laurenz Gamper
[[Glue|Description of the glue code]]
103 24 Laurenz Gamper
104 1 Brian Nord
Instructions on how to run the pipeline: [[Run_Pipeline]]
105 8 Brian Nord
106 8 Brian Nord
107 8 Brian Nord
h2. Creating a sub-project repository
108 8 Brian Nord
109 8 Brian Nord
* Creating a Repository in a Sub-Project: see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/CreatingRepositories
110 8 Brian Nord
* setting up a repository on your local machine (which will then be pushed/pulled to/from the FRedmine (FNAL Redmine) repository you created:
111 8 Brian Nord
112 8 Brian Nord
h3. Example-ish
113 8 Brian Nord
114 8 Brian Nord
* If you have a project "fred" and a "main" repository with no identifier
115 8 Brian Nord
you get put in
116 8 Brian Nord
** /cvs/projects/fred
117 8 Brian Nord
* if you have a project fred and a repository identifier of "joe" you get
118 8 Brian Nord
** /cvs/projects/fred-joe
119 8 Brian Nord
120 8 Brian Nord
* So you can do give them all identifiers, or have one (main) one without;
121 8 Brian Nord
or you can give the Main one an identifier...
122 8 Brian Nord
123 8 Brian Nord
* If there is no "Main" repository, the Repository tab doesn't show up,
124 8 Brian Nord
apparently.
125 8 Brian Nord
126 8 Brian Nord
&nbsp; &nbsp; &nbsp;
127 8 Brian Nord
Also see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/Subversion for Subversion