Template:Fgaddon co: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Added an example for checking out as a user.)
(Support for the 'login' parameter.)
Line 2: Line 2:
| site                              = {{project infrastructure|abbrev}}
| site                              = {{project infrastructure|abbrev}}
| cmd                              = svn co {{{opt|}}}
| cmd                              = svn co {{{opt|}}}
| protocol                          = https
| protocol                          = {{#if: {{{login|}}} | svn+ssh | https}}
| login{{#if:{{{login|}}}||NULL}}          = {{{login}}}
| type                              = svn
| type                              = svn
| repo                              = fgaddon
| repo                              = fgaddon
Line 18: Line 19:
  {{obr}}'''fgaddon co'''
  {{obr}}'''fgaddon co'''
  {{!}} ''opt''    =
  {{!}} ''opt''    =
{{!}} ''login''  =
  {{!}} ''branch'' =
  {{!}} ''branch'' =
  {{!}} ''path''  =
  {{!}} ''path''  =
Line 24: Line 26:


; opt: Any additional options to show after <code>svn co</code>.
; opt: Any additional options to show after <code>svn co</code>.
; login: The optional user login.
; branch: The svn branch or tag name.  This defaults to '''trunk'''.
; path: The file path.


; post: Any optional text to show after the URL.  This defaults to '''flightgear-fgaddon'''.
; post: Any optional text to show after the URL.  This defaults to '''flightgear-fgaddon'''.
Line 56: Line 64:
  {{!}} login = <username>
  {{!}} login = <username>
  {{!}} path  = Aircraft/wrightFlyer1903
  {{!}} path  = Aircraft/wrightFlyer1903
  {{!}} full = 1
  {{!}} post =  
  {{cbr}}
  {{cbr}}


Line 62: Line 70:
| login = <username>
| login = <username>
| path  = Aircraft/wrightFlyer1903
| path  = Aircraft/wrightFlyer1903
| full = 1
| post =
}}
}}



Revision as of 19:01, 26 February 2016

svn co https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon

The following template description is not displayed when the template is inserted in an article.

Goal

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

Usage

{{fgaddon co
| opt    =
| login  =
| branch =
| path   =
| post   =
}}
opt
Any additional options to show after svn co.
login
The optional user login.
branch
The svn branch or tag name. This defaults to trunk.
path
The file path.
post
Any optional text to show after the URL. This defaults to flightgear-fgaddon.

Examples

Checkout of trunk with user name

{{fgaddon co
| opt  = --username <username>
| post = fgaddon
}}

svn co --username <username> https://svn.code.sf.net/p/flightgear/fgaddon/trunk fgaddon

Checkout of aircraft from a branch

{{fgaddon co
| branch = branches/release-3.4.0
| path   = Aircraft/V22-Osprey
| post   =
}}

svn co https://svn.code.sf.net/p/flightgear/fgaddon/branches/release-3.4.0/Aircraft/V22-Osprey

Checkout of aircraft as a user

{{fgaddon co
| login = <username>
| path  = Aircraft/wrightFlyer1903
| post  = 
}}

svn co svn+ssh://<username>@svn.code.sf.net/p/flightgear/fgaddon/trunk/Aircraft/wrightFlyer1903

Related templates