|
Size: 331
Comment:
|
Size: 2265
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| SVN! | SVN! aka, Subversion! |
| Line 3: | Line 3: |
| We are in the process of installing the 40m directory tree into SVN version control. | The SVN repository is set up in /cvs/cds/caltech/svn. '''Do not''' try to modify it or put anything on the directory. It is the job of svn command. An apache web server dedicated to handle svn queries is running on nodus. For more information, please refer to the following web page. http://svnbook.red-bean.com/ |
| Line 6: | Line 12: |
Yoichi will write something here. |
You can access the svn repository from the control room computers by something like {{{svn co file:///cvs/cds/caltech/svn/trunk/}}}. However, it is strongly discouraged to do so unless you are absolutely sure about what you are doing. Use the method below even from the control room computers. |
| Line 10: | Line 15: |
| There are two methods. Use the first method whenever possible. | |
| Line 11: | Line 17: |
| You can do something like this: | Checking out trunk/chans directory |
| Line 13: | Line 19: |
| {{{svn co svn+ssh://controls@nodus.ligo.caltech.edu/cvs/cds/caltech/svn/trunk/medm}}} | {{{ svn co --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/chans}}} The password is written in the standard place. Alternative way: {{{svn co svn+ssh://controls@nodus.ligo.caltech.edu/cvs/cds/caltech/svn/trunk/chans}}} == A sample session == '''Task''': Making your own directory under trunk/docs/ and put a draft of your potentially Nobel prize winning paper. (1) Make your own directory in the repository. {{{svn mkdir --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/docs/mydir}}} (2) Check out the directory you just created to your machine. {{{svn co --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/docs/mydir}}} (3) Move to the checked out directory. {{{cd mydir}}} (4) Put your draft into the directory. {{{cp /somewhere/ProofOfEverything.tex . }}} (5) Put the file under the svn's control. {{{svn add ProofOfEverything.tex}}} (6) Check it in to the svn repository. {{{svn ci -m "The first draft"}}} You have to put your comment after {{{-m}}} (7) Update your working copy. {{{svn up}}} (8) Delete the file from the repository because you realized your paper is totally a bullshit. {{{svn delete ProofOfEverything.tex}}} {{{svn ci -m "Oops, I was wrong"}}} However, your crappy paper can still be retrieved from the repository by requesting an old version, because all the history is recorded in the svn world. |
SVN! aka, Subversion!
The SVN repository is set up in /cvs/cds/caltech/svn. Do not try to modify it or put anything on the directory. It is the job of svn command.
An apache web server dedicated to handle svn queries is running on nodus.
For more information, please refer to the following web page. http://svnbook.red-bean.com/
Using SVN in the control room
You can access the svn repository from the control room computers by something like svn co file:///cvs/cds/caltech/svn/trunk/. However, it is strongly discouraged to do so unless you are absolutely sure about what you are doing. Use the method below even from the control room computers.
Getting files from off-site
There are two methods. Use the first method whenever possible.
Checking out trunk/chans directory
svn co --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/chans
The password is written in the standard place.
Alternative way:
svn co svn+ssh://controls@nodus.ligo.caltech.edu/cvs/cds/caltech/svn/trunk/chans
A sample session
Task: Making your own directory under trunk/docs/ and put a draft of your potentially Nobel prize winning paper.
(1) Make your own directory in the repository.
svn mkdir --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/docs/mydir
(2) Check out the directory you just created to your machine.
svn co --username svn40m https://nodus.ligo.caltech.edu:30889/svn/trunk/docs/mydir
(3) Move to the checked out directory.
cd mydir
(4) Put your draft into the directory.
cp /somewhere/ProofOfEverything.tex .
(5) Put the file under the svn's control.
svn add ProofOfEverything.tex
(6) Check it in to the svn repository.
svn ci -m "The first draft"
You have to put your comment after -m
(7) Update your working copy.
svn up
(8) Delete the file from the repository because you realized your paper is totally a bullshit.
svn delete ProofOfEverything.tex
svn ci -m "Oops, I was wrong"
However, your crappy paper can still be retrieved from the repository by requesting an old version, because all the history is recorded in the svn world.
