Package bitten :: Package build :: Module svntools

Module svntools

Recipe commands for Subversion.
Classes
  Error
Functions
 
copytree(src, dst, symlinks=False)
Recursively copy a directory tree using copy2().
 
checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None, no_auth_cache='false')
Perform a checkout from a Subversion repository.
 
export(ctxt, url, path=None, revision=None, dir_='.', username=None, password=None, no_auth_cache='false')
Perform an export from a Subversion repository.
 
update(ctxt, revision=None, dir_='.', username=None, password=None, no_auth_cache='false')
Update the local working copy from the Subversion repository.
Variables
  log = logging.getLogger('bitten.build.svntools')
  __package__ = 'bitten.build'
Function Details

copytree(src, dst, symlinks=False)

 

Recursively copy a directory tree using copy2().

If exception(s) occur, an Error is raised with a list of reasons.

If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, the contents of the files pointed to by symbolic links are copied.

Adapted from shtuil.copytree

checkout(ctxt, url, path=None, revision=None, dir_='.', verbose='false', shared_path=None, username=None, password=None, no_auth_cache='false')

 
Perform a checkout from a Subversion repository.
Parameters:
  • ctxt (Context) - the build context
  • url - the URL of the repository
  • path - the path inside the repository
  • revision - the revision to check out
  • dir_ - the name of a local subdirectory to check out into
  • verbose - whether to log the list of checked out files
  • shared_path - a shared directory to do the checkout in, before copying to dir_
  • username - a username of the repository
  • password - a password of the repository
  • no_auth_cache - do not cache authentication tokens

export(ctxt, url, path=None, revision=None, dir_='.', username=None, password=None, no_auth_cache='false')

 
Perform an export from a Subversion repository.
Parameters:
  • ctxt (Context) - the build context
  • url - the URL of the repository
  • path - the path inside the repository
  • revision - the revision to check out
  • dir_ - the name of a local subdirectory to export out into
  • username - a username of the repository
  • password - a password of the repository
  • no_auth_cache - do not cache authentication tokens

update(ctxt, revision=None, dir_='.', username=None, password=None, no_auth_cache='false')

 
Update the local working copy from the Subversion repository.
Parameters:
  • ctxt (Context) - the build context
  • revision - the revision to check out
  • dir_ - the name of a local subdirectory containing the working copy
  • username - a username of the repository
  • password - a password of the repository
  • no_auth_cache - do not cache authentication tokens