ScmSvn(repository, server=None, revision=None)

Retrieves source from SVN based on provided information

Parameters:
  • repository (str) – The repository or path from server under the server to get our data from

  • server (Optional[str]) – The server to connect to

  • revision (Optional[str]) – The optional revision to get. Defaults to latest revision

SvnInfo(checkoutdir=None)

Retrieves svn information about source on disk.

Parameters:

checkoutdir (Optional[str]) – optional alternate directory to try to retrieve information from

Returns:

returns a dictionary with values to these keys:

  • revision

  • revision_low

  • modified

  • switched

  • partial

  • url

  • server

Variables

ScmSvn can be control via a number of variables.

SVN_SERVER

The svn server to use by default

SVN_FLAGS

A list of of optional flags to add to any SVN command. By default ['--non-interactive']

VCS_SVN_DIR

The location where SVN will checked out the source to. Defaults to ${CHECK_OUT_ROOT}/${PART_ALIAS}