libvcs.projects.svn#

For subversion, aka svn(1)

Subversion object for libvcs.

class libvcs.projects.svn.SubversionProject(*, url, dir, **kwargs)[source]#

Bases: libvcs.projects.base.BaseProject

Base class for repositories.

Parameters:
  • url (str) –

  • dir (libvcs._internal.types.StrPath) –

bin_name = svn#
get_revision(self, location=None)[source]#

Return maximum revision for all files under a given location

get_revision_file(self, location)[source]#

Return revision for a file.

obtain(self, quiet=None)[source]#
schemes = ['svn', 'svn+ssh', 'svn+http', 'svn+https', 'svn+svn']#
update_repo(self, dest=None, *args, **kwargs)[source]#
class libvcs.projects.svn.VCSLocation[source]#

Bases: NamedTuple

rev#
url#
libvcs.projects.svn.base_convert_pip_url(pip_url)[source]#

Parse pip URL via libvcs.projects.base.BaseProject.url.

Parameters:

pip_url (str) –

Return type:

VCSLocation

libvcs.projects.svn.convert_pip_url(pip_url)[source]#
Parameters:

pip_url (str) –

Return type:

libvcs.projects.base.VCSLocation

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

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

libvcs.projects.svn.logger#