libvcs.sync.svn#

For subversion, aka svn(1)

Subversion object for libvcs.

libvcs.sync.svn.convert_pip_url(pip_url)[source]#
Return type:

VCSLocation

Parameters:

pip_url (str) –

class libvcs.sync.svn.SvnSync(*, url, dir, **kwargs)[source]#

Bases: BaseSync

A svn repository.

Parameters:
  • url (str) – URL in subversion repository

  • svn_username (str, optional) – username to use for checkout and update

  • svn_password (str, optional) – password to use for checkout and update

  • svn_trust_cert (bool) – trust the Subversion server site certificate, default False

  • dir (Path) –

  • kwargs (Any) –

bin_name: str = 'svn'#

VCS app name, e.g. β€˜git’

schemes: tuple[str, ...] = ('svn', 'svn+ssh', 'svn+http', 'svn+https', 'svn+svn')#

List of supported schemes to register in urlparse.uses_netloc

__init__(*, url, dir, **kwargs)[source]#

A svn repository.

Parameters:
  • url (str) – URL in subversion repository

  • svn_username (str, optional) – username to use for checkout and update

  • svn_password (str, optional) – password to use for checkout and update

  • svn_trust_cert (bool) – trust the Subversion server site certificate, default False

  • dir (Union[str, PathLike[str]]) –

  • kwargs (Any) –

Return type:

None

_user_pw_args()[source]#
Return type:

list[Any]

obtain(quiet=None, *args, **kwargs)[source]#
Return type:

None

Parameters:
get_revision_file(location)[source]#

Return revision for a file.

Return type:

int

Parameters:

location (str) –

get_revision(location=None)[source]#

Return maximum revision for all files under a given location

Return type:

int

Parameters:

location (Optional[str]) –

update_repo(dest=None, *args, **kwargs)[source]#
Return type:

None

Parameters:
classmethod _get_svn_url_rev(location)[source]#
Return type:

tuple[Optional[str], int]

Parameters:

location (str) –

libvcs.sync.svn.get_rev_options(url, rev)[source]#

Return revision options. From pip pip.vcs.subversion.

Return type:

list[Any]

Parameters:
  • url (str) –

  • rev (None) –