Open main menu

Template:Relax svn co

Revision as of 14:40, 23 October 2020 by Bugman admin (talk | contribs) (Switch from the imported {{informative template}} to the relax {{template info}} template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

svn co https://svn.code.sf.net/p/nmr-relax/code-svn-archive/trunk relax-svn-archive

Template documentation

Goal

To provide a consistent representation of the command to checkout the archived relax subversion repository.

Usage

{{relax svn co
| opt        =
| login      =
| branch     =
| path       =
| post       =
}}

The parameters are:

Parameter Description Abbreviated
parameter
Numbered
parameter
Status
opt Any additional options to show after the command svn co, but before the URL. optional
login The optional user login. optional
branch The branch name. As tags are simply branches in SVN repositories, this parameter can also be used for svn tags. This defaults to trunk. b 1 optional
path The file or directory path. f 2 optional
post Text to append. This is forms a set with the parameter opt. For example it can represent any command line options that come after the URL. The default value is relax-svn-archive. optional

Plain text

To create a URL or link as plain text and avoid external links, simply use the {{#tag:tagname|content}} magic word construct:

{{#tag:nowiki|
  {{repo link
  | full = 1
  }}
}}

https://sourceforge.net/p/nmr-relax/code/ci/master/tree/

To use the <code> tags:

{{#tag:code|{{#tag:nowiki|
  {{repo link
  | full = 1
  }}
}}}}

https://sourceforge.net/p/nmr-relax/code/ci/master/tree/

Examples

Checkout of trunk with user name

{{relax svn co
| opt  = --username <username>
| post = relax-trunk
}}

svn co --username <username> https://svn.code.sf.net/p/nmr-relax/code-svn-archive/trunk relax-trunk

Checkout of a branch

{{relax svn co
| branch = branches/cst
| post   = cst-svn-branch
}}

svn co https://svn.code.sf.net/p/nmr-relax/code-svn-archive/branches/cst cst-svn-branch

Checkout as a user

{{relax svn co
| login = <username>
| post  = relax-trunk 
}}

svn co svn+ssh://<username>@svn.code.sf.net/p/nmr-relax/code-svn-archive/trunk relax-trunk

Aliased parameters

{{relax svn co
| b    = branches/cst
| f    = maths_fns
| post = cst_maths_fns
}}

svn co https://svn.code.sf.net/p/nmr-relax/code-svn-archive/branches/cst/maths_fns cst_maths_fns

Numbered parameters

{{relax svn co | branches/cst | maths_fns | post = cst_maths_fns }}

svn co https://svn.code.sf.net/p/nmr-relax/code-svn-archive/branches/cst/maths_fns cst_maths_fns

Related templates