Project

General

Profile

UsingRepositories » History » Version 23

Version 22 (Laurenz Gamper, 01/22/2013 03:52 AM) → Version 23/39 (Laurenz Gamper, 01/22/2013 03:54 AM)

h1. SVN

* [[UsingRepositories#svn_access|SVN Access]]
* [[UsingRepositories#svn_intro|SVN Introduction]] SVN Checkout
* [[UsingRepositories#svn_checkout|SVN Checkout]] SVN Introduction
* [[UsingRepositories#run_pipeline|Running Running the pipeline]]

Code

h1(#svn_access). SVN Access

To Access the DESpec SVN, you need:
* a services account
* to be a member of the subprojects of DESpec
* a kerberos ticket
* a svn client

h2. Recommended SVN Clients

* Windows: TortoiseSVN http://tortoisesvn.tigris.org/
* Mac: Versions http://versionsapp.com/
* command line

h2. Services Account at Fermilab

How to get a services account:
https://cdcvs.fnal.gov/redmine/projects/despec/wiki/DESpecwikiAccess

h2. Member of the Subprojects

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.

h2. Kerberos

h3. How to set up kerberos

<pre>
$ mv /etc/krb5.conf /etc/krb5.conf.bak
$ cd /etc
$ wget http://security.fnal.gov/krb5.conf
$ echo "host cdcvs.fnal.gov
ForwardX11 = no
GSSAPIAuthentication yes
GSSAPIDelegateCredentials yes" >> ~/.ssh/config
$ kinit -f your-fnal-username
$ klist
</pre>

The final klist should show your kerberos ticket and the svn can be checked out now using the svn checkout command below.

h3. Links with further documentation

http://www.fnal.gov/docs/strongauth/macadmin.html#55292
http://kb.mit.edu/confluence/display/istcontrib/Acquiring+Kerberos+Tickets+in+Mac+OS+X+10.7+(Lion)+or+OS+X+10.8+(Mountain+Lion)
http://fermilinux.fnal.gov/documentation/security/kerberos-newer-linux/

h1(#svn_intro). h1(#svn_access). SVN Intro

http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html

h2. Checkin/Import

One need not supply a URL for commit. SVN automatically contacts external server
<pre>
svn commit -m "your message"
</pre>

h1(#svn_checkout). h1(#svn_access). SVN Checkout

h3. Source Code

<pre>
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/trunk despec
</pre>

h3. Data

<pre>
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/data data
</pre>

h3. Paper

<pre>
svn checkout svn+ssh://p-simulation_pipeline@cdcvs.fnal.gov/cvs/projects/simulation_pipeline-main/paper paper
</pre>

This will create a directory called despec containing a checkout the complete pipeline.

h1. Anonymous SVN

<pre>
svn export http://cdcvs.fnal.gov/subversion/simulation_pipeline-main/trunk/ despec
</pre>

h1{#run_code}. h1. Run the Code

Instructions on how to run the pipeline: [[Run_Pipeline]]

h2. Creating a sub-project repository

* Creating a Repository in a Sub-Project: see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/CreatingRepositories
* setting up a repository on your local machine (which will then be pushed/pulled to/from the FRedmine (FNAL Redmine) repository you created:

h3. Example-ish

* If you have a project "fred" and a "main" repository with no identifier
you get put in
** /cvs/projects/fred
* if you have a project fred and a repository identifier of "joe" you get
** /cvs/projects/fred-joe

* So you can do give them all identifiers, or have one (main) one without;
or you can give the Main one an identifier...

* If there is no "Main" repository, the Repository tab doesn't show up,
apparently.

&nbsp; &nbsp; &nbsp;
Also see https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/Subversion for Subversion