Changes between Version 15 and Version 16 of SubVersion


Ignore:
Timestamp:
09/09/11 09:31:00 (6 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SubVersion

    v15 v16  
    11== Overview == 
    22 
    3 You can browse the source using the [http://trac.biostr.washington.edu/trac/browser Browse Source] tab in Trac. Also, don't miss our EclipseHints. 
     3You can browse the source using the [http://trac.biostr.washington.edu/trac/browser Browse Source] tab in Trac. Also, don't miss our EclipseHints and maybe OpenSsh too. 
    44 
    5 == With Subclipse plugin == 
     5== Command Line == 
     6 
     7Actual code checkin to subversion repository is accessible only via SSH via location `svn+ssh://trac.biostr.washington.edu/src`. 
     8 
     9For example, list modules with 
     10{{{ 
     11svn list svn+ssh://trac.biostr.washington.edu/src 
     12}}} 
     13 
     14You don't need Subversion environment variables except optionally SVN_EDITOR (default is nano). 
     15All authentication is done via SSH. If you'd like to try it out, I recommend reading  
     16[http://svnbook.red-bean.com/en/1.1/ch01s07.html the one-page SVN Quick Start]. 
     17You can skip creating the repository (the "svnadmin create /path/to/repos" 
     18step), and replace the example URL `file:///path/to/repos` with 
     19`svn+ssh://trac.biostr.washington.edu/src`. 
     20 
     21== Checking out one file == 
     22Sometimes you need to edit just one file in a large project. Subversion supports sparse checkout: 
     23{{{ 
     24svn checkout svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk --depth empty 
     25cd $PROJ/trunk 
     26svn up <file_you_want> 
     27# edit file 
     28svn commit -m 'awesome edit' 
     29}}} 
     30 
     31 
     32== Creating a new project == 
     33 
     34Here are some quick commands to create a project using the command line, based on  
     35http://svnbook.red-bean.com/en/1.1/ch01s07.html. 
     36{{{ 
     37PROJ=fooproj 
     38svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ 
     39svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk 
     40svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/tags 
     41svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/branches 
     42# this will make mycode/foo appear at src/$PROJ/trunk/foo 
     43svn import -m "$PROJ import" mycode svn+ssh://trac/src/$PROJ/trunk 
     44}}} 
     45You may want to make sure everything looks good and tag the initial 
     46import: 
     47{{{ 
     48svn list svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk 
     49# create a tag 
     50TAG=initial-import 
     51svn copy svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk \ 
     52         svn+ssh://trac.biostr.washington.edu/src/$PROJ/tags/$TAG \ 
     53      -m "Tagging the $TAG of the $PROJ project." 
     54}}} 
     55 
     56== Subclipse plugin == 
    657 
    758IBM Devworks has a [http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/?ca=dgr-jw22EclipseSubversion How to use Subversion with Eclipse] tutorial 
    859 
    960 * Install Ecplise 
    10  * Install [http://subclipse.tigris.org/update_1.6.x SubClipse plugin] from http://subclipse.tigris.org/ and restart Eclipse 
     61 * Install [http://subclipse.tigris.org/ SubClipse plugin] from http://subclipse.tigris.org/ and restart Eclipse 
    1162 * On 64-bit Windows or Mac, you may need a separate [http://subclipse.tigris.org/wiki/JavaHL JavaHL download] 
    12  * For Windows, set: 
     63 * If that doesn't work, on Windows, set: 
    1364   * Window->Preferences 
    1465   * Team->SVN 
     
    3788In your commit comments, you can also use any WikiFormatting to link the changeset and tickets to wiki pages. 
    3889 
    39 == Command Line == 
    40  
    41 Actual code checkin to subversion repository is accessible only via SSH, at: 
    42 {{{ 
    43 svn+ssh://trac/src 
    44 }}} 
    45 For example, list modules with 
    46 {{{ 
    47 svn list svn+ssh://trac.biostr.washington.edu/src 
    48 }}} 
    49 You don't need Subversion environment variables except optionally SVN_EDITOR (default is nano). 
    50 All authentication is done via SSH. If you'd like to try it out, I recommend reading  
    51 [http://svnbook.red-bean.com/en/1.1/ch01s07.html the one-page SVN Quick Start]. 
    52 You can skip creating the repository (the "svnadmin create /path/to/repos" 
    53 step), and replace the example URL `file:///path/to/repos` with 
    54 `svn+ssh://trac.biostr.washington.edu/src`. 
    55  
    56 == Creating a new project == 
    57  
    58 Here are some quick commands to create a project using the command line, based on  
    59 http://svnbook.red-bean.com/en/1.1/ch01s07.html. 
    60 {{{ 
    61 PROJ=fme 
    62 svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ 
    63 svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk 
    64 svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/tags 
    65 svn mkdir -m "create $PROJ"  svn+ssh://trac.biostr.washington.edu/src/$PROJ/branches 
    66 # this will make mycode/foo appear at src/$PROJ/trunk/foo 
    67 svn import -m "$PROJ import" mycode svn+ssh://trac/src/$PROJ/trunk 
    68 }}} 
    69 You may want to make sure everything looks good and tag the initial 
    70 import: 
    71 {{{ 
    72 svn list svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk 
    73 # create a tag 
    74 TAG=initial-import 
    75 svn copy svn+ssh://trac.biostr.washington.edu/src/$PROJ/trunk \ 
    76          svn+ssh://trac.biostr.washington.edu/src/$PROJ/tags/$TAG \ 
    77       -m "Tagging the $TAG of the $PROJ project." 
    78 }}} 
    79  
    8090== Converting a project == 
    8191