Let us walk on the 3-isogeny graph
|
Public Member Functions | |
bool | should_add_vcs_url_prefix (cls, str remote_url) |
str | get_revision (cls, str location) |
Tuple[str, Tuple[Optional[str], Optional[str]]] | get_netloc_and_auth (cls, str netloc, str scheme) |
Tuple[str, Optional[str], AuthInfo] | get_url_rev_and_auth (cls, str url) |
str | get_remote_url (cls, str location) |
bool | is_commit_id_equal (cls, str dest, Optional[str] name) |
None | __init__ (self, Optional[bool] use_interactive=None) |
Tuple[int,...] | call_vcs_version (self) |
Tuple[int,...] | get_vcs_version (self) |
CommandArgs | get_remote_call_options (self) |
None | fetch_new (self, str dest, HiddenText url, RevOptions rev_options, int verbosity) |
None | switch (self, str dest, HiddenText url, RevOptions rev_options) |
None | update (self, str dest, HiddenText url, RevOptions rev_options) |
![]() | |
Optional[str] | get_subdirectory (cls, str location) |
str | get_requirement_revision (cls, str repo_dir) |
str | get_src_requirement (cls, str repo_dir, str project_name) |
bool | is_immutable_rev_checkout (self, str url, str dest) |
RevOptions | make_rev_options (cls, Optional[str] rev=None, Optional[CommandArgs] extra_args=None) |
Tuple[HiddenText, RevOptions] | get_url_rev_options (self, HiddenText url) |
bool | compare_urls (cls, str url1, str url2) |
None | obtain (self, str dest, HiddenText url, int verbosity) |
None | unpack (self, str location, HiddenText url, int verbosity) |
str | run_command (cls, Union[List[str], CommandArgs] cmd, bool show_stdout=True, Optional[str] cwd=None, 'Literal["raise", "warn", "ignore"]' on_returncode="raise", Optional[Iterable[int]] extra_ok_returncodes=None, Optional[str] command_desc=None, Optional[Mapping[str, Any]] extra_environ=None, Optional[SpinnerInterface] spinner=None, bool log_failed_cmd=True, bool stdout_only=False) |
bool | is_repository_directory (cls, str path) |
Optional[str] | get_repository_root (cls, str location) |
Static Public Member Functions | |
List[str] | get_base_rev_args (str rev) |
CommandArgs | make_rev_args (Optional[str] username, Optional[HiddenText] password) |
![]() | |
str | normalize_url (str url) |
Data Fields | |
dirname | |
use_interactive | |
![]() | |
repo_name | |
name | |
dirname | |
Static Public Attributes | |
str | name = "svn" |
str | dirname = ".svn" |
str | repo_name = "checkout" |
tuple | schemes = ("svn+ssh", "svn+http", "svn+https", "svn+svn", "svn+file") |
![]() | |
str | name = "" |
str | dirname = "" |
str | repo_name = "" |
tuple | schemes = () |
tuple | unset_environ = () |
Optional | default_arg_rev = None |
Protected Member Functions | |
Tuple[Optional[str], int] | _get_svn_url_rev (cls, str location) |
![]() | |
bool | _is_local_repository (cls, str repo) |
Protected Attributes | |
_vcs_version | |
Definition at line 30 of file subversion.py.
Definition at line 187 of file subversion.py.
Referenced by Protocol.__init_subclass__().
|
protected |
Definition at line 133 of file subversion.py.
References Bazaar.dirname, Mercurial.dirname, Subversion.dirname, VersionControl.dirname, Wheel.dirname, i, VersionControl.run_command(), SubprocessMixin.run_command(), and PackageIndex.run_command().
Referenced by Subversion.get_remote_url().
Tuple[int, ...] call_vcs_version | ( | self | ) |
Query the version of the currently installed Subversion client. :return: A tuple containing the parts of the version information or ``()`` if the version returned from ``svn`` could not be parsed. :raises: BadCommand: If ``svn`` is not installed.
Definition at line 201 of file subversion.py.
References i, VersionControl.run_command(), SubprocessMixin.run_command(), and PackageIndex.run_command().
Referenced by Subversion.get_vcs_version().
None fetch_new | ( | self, | |
str | dest, | ||
HiddenText | url, | ||
RevOptions | rev_options, | ||
int | verbosity | ||
) |
Fetch a revision from a repository, in the case that this is the first fetch from the repository. Args: dest: the directory to fetch the repository to. rev_options: a RevOptions object. verbosity: verbosity level.
Reimplemented from VersionControl.
Definition at line 280 of file subversion.py.
References Subversion.get_remote_call_options(), i, VersionControl.run_command(), SubprocessMixin.run_command(), and PackageIndex.run_command().
Referenced by VersionControl.obtain().
|
static |
Return the base revision arguments for a vcs command. Args: rev: the name of a revision to install. Cannot be None.
Reimplemented from VersionControl.
Definition at line 41 of file subversion.py.
Tuple[str, Tuple[Optional[str], Optional[str]]] get_netloc_and_auth | ( | cls, | |
str | netloc, | ||
str | scheme | ||
) |
This override allows the auth information to be passed to svn via the --username and --password options instead of via the URL.
Reimplemented from VersionControl.
Definition at line 74 of file subversion.py.
References Subversion.get_netloc_and_auth(), and i.
Referenced by Subversion.get_netloc_and_auth(), and VersionControl.get_url_rev_and_auth().
CommandArgs get_remote_call_options | ( | self | ) |
Return options to be used on calls to Subversion that contact the server. These options are applicable for the following ``svn`` subcommands used in this class. - checkout - switch - update :return: A list of command line arguments to pass to ``svn``.
Definition at line 249 of file subversion.py.
References Subversion.get_vcs_version(), and Subversion.use_interactive.
Referenced by Subversion.fetch_new(), Subversion.switch(), and Subversion.update().
str get_remote_url | ( | cls, | |
str | location | ||
) |
Return the url used at location Raises RemoteNotFoundError if the repository does not have a remote url configured.
Reimplemented from VersionControl.
Definition at line 109 of file subversion.py.
References Subversion._get_svn_url_rev(), and i.
Referenced by VersionControl.get_src_requirement(), and VersionControl.obtain().
str get_revision | ( | cls, | |
str | location | ||
) |
Return the maximum revision for all files under a given location
Reimplemented from VersionControl.
Definition at line 45 of file subversion.py.
References Bazaar.dirname, Mercurial.dirname, Subversion.dirname, VersionControl.dirname, Wheel.dirname, and i.
Referenced by VersionControl.get_requirement_revision().
Tuple[str, Optional[str], AuthInfo] get_url_rev_and_auth | ( | cls, | |
str | url | ||
) |
Parse the repository URL to use, and return the URL, revision, and auth info to use. Returns: (url, rev, (username, password)).
Reimplemented from VersionControl.
Definition at line 89 of file subversion.py.
References Subversion.get_url_rev_and_auth(), and i.
Referenced by Subversion.get_url_rev_and_auth(), and VersionControl.get_url_rev_options().
Tuple[int, ...] get_vcs_version | ( | self | ) |
Return the version of the currently installed Subversion client. If the version of the Subversion client has already been queried, a cached value will be used. :return: A tuple containing the parts of the version information or ``()`` if the version returned from ``svn`` could not be parsed. :raises: BadCommand: If ``svn`` is not installed.
Definition at line 229 of file subversion.py.
References Subversion._vcs_version, and Subversion.call_vcs_version().
Referenced by Subversion.get_remote_call_options().
bool is_commit_id_equal | ( | cls, | |
str | dest, | ||
Optional[str] | name | ||
) |
Always assume the versions don't match
Reimplemented from VersionControl.
Definition at line 183 of file subversion.py.
Referenced by VersionControl.obtain().
|
static |
Return the RevOptions "extra arguments" to use in obtain().
Reimplemented from VersionControl.
Definition at line 97 of file subversion.py.
Referenced by VersionControl.get_url_rev_options().
bool should_add_vcs_url_prefix | ( | cls, | |
str | remote_url | ||
) |
Return whether the vcs prefix (e.g. "git+") should be added to a repository's remote url when used in a requirement.
Reimplemented from VersionControl.
Definition at line 37 of file subversion.py.
Referenced by VersionControl.get_src_requirement().
None switch | ( | self, | |
str | dest, | ||
HiddenText | url, | ||
RevOptions | rev_options | ||
) |
Switch the repo at ``dest`` to point to ``URL``. Args: rev_options: a RevOptions object.
Reimplemented from VersionControl.
Definition at line 304 of file subversion.py.
References Subversion.get_remote_call_options(), i, VersionControl.run_command(), SubprocessMixin.run_command(), and PackageIndex.run_command().
None update | ( | self, | |
str | dest, | ||
HiddenText | url, | ||
RevOptions | rev_options | ||
) |
Update an already-existing repo to the given ``rev_options``. Args: rev_options: a RevOptions object.
Reimplemented from VersionControl.
Definition at line 314 of file subversion.py.
References Subversion.get_remote_call_options(), i, VersionControl.run_command(), SubprocessMixin.run_command(), and PackageIndex.run_command().
Referenced by Progress.increment(), Progress.open(), Progress.start(), Progress.stop(), Progress.track(), and Progress.wrap_file().
|
protected |
Definition at line 246 of file subversion.py.
Referenced by Subversion.get_vcs_version().
|
static |
Definition at line 32 of file subversion.py.
Referenced by Wheel._get_extensions(), Subversion._get_svn_url_rev(), Wheel.exists(), Subversion.get_revision(), Wheel.info(), Wheel.install(), Wheel.metadata(), Wheel.mount(), Mercurial.switch(), Wheel.unmount(), Wheel.update(), and Wheel.verify().
dirname |
Definition at line 56 of file subversion.py.
Referenced by Wheel._get_extensions(), Subversion._get_svn_url_rev(), Wheel.exists(), Subversion.get_revision(), Wheel.info(), Wheel.install(), Wheel.metadata(), Wheel.mount(), Mercurial.switch(), Wheel.unmount(), Wheel.update(), and Wheel.verify().
|
static |
Definition at line 31 of file subversion.py.
Referenced by AlreadyInstalledCandidate.__eq__(), Distribution.__eq__(), ExportEntry.__eq__(), _LazyDescr.__get__(), Distribution.__hash__(), ElementState.__init__(), Requirement.__init__(), LinkHash.__post_init__(), InstallationCandidate.__repr__(), Distribution.__repr__(), Metadata.__repr__(), ExportEntry.__repr__(), Encoding.__repr__(), Color.__rich_repr__(), Layout.__rich_repr__(), InstallationCandidate.__str__(), InstalledDistribution.__str__(), EggInfoDistribution.__str__(), Requirement.__str__(), ParserElement.__str__(), Tag.__str__(), _SixMetaPathImporter._add_module(), Matcher._check_compatible(), InstallRequirement._get_archive_name(), Wheel._get_extensions(), _SixMetaPathImporter._get_module(), ConfigOptionParser._get_ordered_configuration_items(), Distribution._get_requirements(), _Cache.add(), InstallRequirement.archive(), LinkHash.as_dict(), LinkHash.as_hashes(), Wheel.build(), _Cache.clear(), Wheel.filename(), Layout.get(), InstallRequirement.get_dist(), InstalledDistribution.get_distinfo_file(), RequirementCommand.get_requirements(), Wheel.get_wheel_metadata(), InstallRequirement.install(), Wheel.install(), SpecifierRequirement.is_satisfied_by(), LinuxDistribution.linux_distribution(), Wheel.metadata(), Distribution.name_and_version(), InstallRequirement.prepare_metadata(), Distribution.provides(), Metadata.provides(), VcsSupport.register(), VersionControl.run_command(), InstallRequirement.uninstall(), Wheel.update(), and Wheel.verify().
|
static |
Definition at line 33 of file subversion.py.
Referenced by VersionControl.obtain().
Definition at line 34 of file subversion.py.
use_interactive |
Definition at line 190 of file subversion.py.
Referenced by Subversion.get_remote_call_options().