Open main menu

Changes

Template:Relax svn co

2,501 bytes added, 08:48, 27 October 2017
Creation of the {{relax svn co}} template. This is adapted from the FlightGear page http://wiki.flightgear.org/index.php?title=Template:Fgaddon_co&oldid=95798.
{{#tag:nowiki|{{repo link
| site = {{project infrastructure/code}}
| cmd = svn co
| opt{{#if:{{{opt|}}}||NULL}} = {{{opt}}}
| protocol = {{#if: {{{login|}}} | svn+ssh | https}}
| login{{#if:{{{login|}}}||NULL}} = {{{login}}}
| type = svn
| proj = nmr-relax
| repo = code-svn-archive
| branch{{#if:{{{branch|{{{b|{{{1|}}}}}}}}}||NULL}} = {{{branch|{{{b|{{{1}}}}}}}}}
| path{{#if:{{{path|{{{f|{{{2|}}}}}}}}}||NULL}} = {{{path|{{{f|{{{2}}}}}}}}}
| post = {{{post|relax-svn-archive}}}
| full = 1
}}}}<noinclude>
{{Informative template|1=
__NOTOC__
== Goal ==
To provide a consistent representation of the command to checkout the archived relax subversion repository.

{{repo link/doc usage
| template = relax svn co
| value_cmd = svn co
| opt = 1
| login = 1
| branch = 1 | short_branch = b | pos_branch = 1
| path = 1 | short_path = f | pos_path = 2
| post = 1 | default_post = relax-svn-archive
| sf = 1
| svn = 1
| break = 0
}}

{{repo link/doc plain text}}

== Examples ==
=== Checkout of trunk with user name ===
{{obr}}relax svn co
{{!}} opt = --username <username>
{{!}} post = relax-trunk
{{cbr}}

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

=== Checkout of a branch ===
{{obr}}relax svn co
{{!}} branch = branches/cst
{{!}} post = cst-svn-branch
{{cbr}}

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

=== Checkout as a user ===
{{obr}}relax svn co
{{!}} login = <username>
{{!}} post = relax-trunk
{{cbr}}

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

=== Aliased parameters ===
{{obr}}relax svn co
{{!}} b = branches/cst
{{!}} f = maths_fns
{{!}} post = cst_maths_fns
{{cbr}}

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

=== Numbered parameters ===
{{obr}}relax svn co {{!}} branches/cst {{!}} maths_fns {{!}} post = cst_maths_fns {{cbr}}

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

== Related templates ==
{{repo link/doc related}}

}}

[[Category:SCM Instruction Templates]]
</noinclude>
Trusted, Bureaucrats
4,228

edits