New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Developers/SVN_QuickReference (diff) – NEMO

Changes between Version 58 and Version 59 of Developers/SVN_QuickReference


Ignore:
Timestamp:
2018-11-12T00:01:03+01:00 (5 years ago)
Author:
nicolasmartin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers/SVN_QuickReference

    v58 v59  
    2626{{{#!td 
    2727== Working copy 
     28 
    2829   {{{#!sh 
    2930   ## Download a working copy 
     
    3738   svn {ci,commit} --include-externals ...                ## Append externals 
    3839   }}} 
     40 
    3941== Items 
     42 
    4043   {{{#!sh 
    4144   ## Common cmds 
     
    5053   svn mkdir         {${URL},${WCPATH}} 
    5154 
     55   ## Apply edits from diff file 
     56   svn patch ${DIFF} [${WCPATH}]   ## SVN version > 1.7 
     57 
    5258   ## Infos 
    5359   svn log  {${URL},${WCPATH}}[@${REV}]   ## List commit messages 
    54    svn info {${URL},${WCPATH}}[@${REV}]   ## Detailed   
     60   svn info {${URL},${WCPATH}}[@${REV}]   ## Metadata of working copy 
    5561 
    5662   ## In case of trouble 
     
    6167{{{#!td 
    6268== Properties 
     69 
    6370http://svnbook.red-bean.com/en/1.7/svn.ref.properties.html 
     71 
    6472   {{{#!sh 
    65    ## {proplist,plist} 
    66    ## {propset,pset} 
    67    ## {propedit,pedit} 
    68    ## {propdel,pdel} 
     73   ## Sub-cmds for managing properties 
     74   ## {propdel,pdel} / {propset,pset} 
     75   ## {propedit,pedit} / {proplist,plist} 
    6976 
    7077   ## 'svn:keywords Id': record commit infos in routine 
     
    7481   svn {propset,pset} svn:executable on ${WCPATH} 
    7582 
    76    ## 'svn:externals': defining external sources 
     83   ## 'svn:externals': defining external sources for items 
    7784   ## - Single external 
    7885   svn {propset,pset}  svn:externals ${URL}[@${REV}] ${WCPATH} 
     
    8087   svn {propset,pedit} svn:externals ${WCPATH} 
    8188   }}} 
     89 
    8290==  Branching 
     91 
    8392   {{{#!sh 
    8493   ## Create a branch (copying) 
     
    8695 
    8796   ## Merging sources 
    88    svn merge {${URL1},${WCPATH1}}[@${REV1}] [{${URL1},${WCPATH2}}[@${REV2}]] [${WCPATH}] 
     97   svn merge  {${URL1},${WCPATH1}}[@${REV1}]  \ 
     98             [{${URL1},${WCPATH2}}[@${REV2}]] \ 
     99             ([${WCPATH}] 
    89100 
    90    ## Update WC to a new URL 
    91    ## - Mirror a different branch $i.e$ traversing branch in the same repository (__hazardous!! __) 
     101   ## Update to a new URL 
     102   ## - Mirror a traversing branch (hazardous!!) 
    92103   svn switch ${URL}[@${REV}] [${WCPATH}] 
    93    ## - Relocate to a different URL $i.e$ keep the same branch but move to a new server or URL scheme 
    94    svn switch --relocate ${URL1} ${URL2} 
    95    svn relocate          ${URL1} ${URL2} 
     104   ## - Relocate to a new server or different URL scheme 
     105   svn switch --relocate ${URL1} ${URL2}   ## SVN version < 1.7 
     106   svn relocate          ${URL1} ${URL2}   ## SVN version > 1.7 
    96107   }}} 
    97108}}}