OpenQuizz
Une application de gestion des contenus pédagogiques
Bazaar Class Reference
Inheritance diagram for Bazaar:
Collaboration diagram for Bazaar:

Public Member Functions

def fetch_new (self, dest, url, rev_options)
 
def switch (self, dest, url, rev_options)
 
def update (self, dest, url, rev_options)
 
def get_url_rev_and_auth (cls, url)
 
def get_remote_url (cls, location)
 
def get_revision (cls, location)
 
def is_commit_id_equal (cls, dest, name)
 
- Public Member Functions inherited from VersionControl
def should_add_vcs_url_prefix (cls, remote_url)
 
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_netloc_and_auth (cls, netloc, scheme)
 
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)
 
- Static Public Member Functions inherited from VersionControl
def make_rev_args (username, password)
 
def normalize_url (url)
 

Static Public Attributes

 name
 
 dirname
 
 repo_name
 
 schemes
 
- Static Public Attributes inherited from VersionControl
 name
 
 dirname
 
 repo_name
 
 schemes
 
 unset_environ
 
 default_arg_rev
 

Member Function Documentation

◆ fetch_new()

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.

◆ get_base_rev_args()

def get_base_rev_args (   rev)
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.

◆ get_remote_url()

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.

◆ get_revision()

def get_revision (   cls,
  location 
)
Return the current commit id of the files at the given location.

Reimplemented from VersionControl.

◆ get_url_rev_and_auth()

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.

◆ is_commit_id_equal()

def is_commit_id_equal (   cls,
  dest,
  name 
)
Always assume the versions don't match

Reimplemented from VersionControl.

◆ switch()

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.

◆ update()

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.

Field Documentation

◆ dirname

dirname
static

◆ name

name
static

◆ repo_name

repo_name
static

◆ schemes

schemes
static

The documentation for this class was generated from the following file: