|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | should_add_vcs_url_prefix (cls, remote_url) |
| def | get_revision (cls, location) |
| def | get_netloc_and_auth (cls, netloc, scheme) |
| def | get_url_rev_and_auth (cls, url) |
| def | get_remote_url (cls, location) |
| def | is_commit_id_equal (cls, dest, name) |
| def | __init__ (self, use_interactive=None) |
| def | call_vcs_version (self) |
| def | get_vcs_version (self) |
| def | get_remote_call_options (self) |
| def | fetch_new (self, dest, url, rev_options) |
| def | switch (self, dest, url, rev_options) |
| def | update (self, dest, url, rev_options) |
Public Member Functions inherited from VersionControl | |
| def | get_subdirectory (cls, location) |
| def | get_requirement_revision (cls, repo_dir) |
| def | get_src_requirement (cls, repo_dir, project_name) |
| def | is_immutable_rev_checkout (self, url, dest) |
| def | make_rev_options (cls, rev=None, extra_args=None) |
| def | get_url_rev_options (self, url) |
| def | compare_urls (cls, url1, url2) |
| def | obtain (self, dest, url) |
| def | unpack (self, location, url) |
| def | run_command (cls, cmd, show_stdout=True, cwd=None, on_returncode='raise', extra_ok_returncodes=None, command_desc=None, extra_environ=None, spinner=None, log_failed_cmd=True, stdout_only=False) |
| def | is_repository_directory (cls, path) |
| def | get_repository_root (cls, location) |
Static Public Member Functions | |
| def | get_base_rev_args (rev) |
| def | make_rev_args (username, password) |
Static Public Member Functions inherited from VersionControl | |
| def | normalize_url (url) |
Data Fields | |
| use_interactive | |
Static Public Attributes | |
| name | |
| dirname | |
| repo_name | |
| schemes | |
Static Public Attributes inherited from VersionControl | |
| name | |
| dirname | |
| repo_name | |
| schemes | |
| unset_environ | |
| default_arg_rev | |
| def __init__ | ( | self, | |
use_interactive = None |
|||
| ) |
| def 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.
| def fetch_new | ( | self, | |
| dest, | |||
| url, | |||
| rev_options | |||
| ) |
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.
Reimplemented from VersionControl.
|
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.
| def get_netloc_and_auth | ( | cls, | |
| netloc, | |||
| 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.
| def 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``.
| def get_remote_url | ( | cls, | |
| location | |||
| ) |
Return the url used at location Raises RemoteNotFoundError if the repository does not have a remote url configured.
Reimplemented from VersionControl.
| def get_revision | ( | cls, | |
| location | |||
| ) |
Return the maximum revision for all files under a given location
Reimplemented from VersionControl.
| def get_url_rev_and_auth | ( | cls, | |
| 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.
| def 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.
| def is_commit_id_equal | ( | cls, | |
| dest, | |||
| name | |||
| ) |
Always assume the versions don't match
Reimplemented from VersionControl.
|
static |
Return the RevOptions "extra arguments" to use in obtain().
Reimplemented from VersionControl.
| def should_add_vcs_url_prefix | ( | cls, | |
| 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.
| def switch | ( | self, | |
| dest, | |||
| url, | |||
| rev_options | |||
| ) |
Switch the repo at ``dest`` to point to ``URL``. Args: rev_options: a RevOptions object.
Reimplemented from VersionControl.
| def update | ( | self, | |
| dest, | |||
| url, | |||
| rev_options | |||
| ) |
Update an already-existing repo to the given ``rev_options``. Args: rev_options: a RevOptions object.
Reimplemented from VersionControl.
|
static |
|
static |
|
static |
|
static |
| use_interactive |