class documentation

class RollbackDebianGitRepository(DebianGitRepository):

View In Hierarchy

Like a DebianGitRepository but can also perform rollbacks and knows about some of the inner workings upstream vcs_tag, …

Method __init__ Undocumented
Method commit_dir Undocumented
Method create_branch Undocumented
Method create_tag Undocumented
Method has_rollbacks Undocumented
Method merge Undocumented
Method rollback Perform a complete rollback
Method rrr Remember ref for rollback
Method rrr_branch Undocumented
Method rrr_merge Undocumented
Method rrr_tag Undocumented
Instance Variable rollback_errors Undocumented
Instance Variable rollbacks Undocumented

Inherited from DebianGitRepository:

Class Method tag_to_version Extract the version from a tag
Class Method version_to_tag Generate a tag from a given format and a version
Method create_pristine_tar_commits Create pristine-tar commits for a package with main tarball and (optional) component tarballs based on upstream_tree
Method create_upstream_tarball_via_git_archive Create a compressed orig tarball in output_dir using git archive
Method create_upstream_tarball_via_pristine_tar Undocumented
Method debian_version_from_upstream Build the Debian version that a package based on upstream commit commit would carry taking into account a possible epoch.
Method find_version Check if a certain version is stored in this repo and return the SHA1 of the related commit. That is, an annotated tag is dereferenced to the commit object it points to.
Method get_pristine_tar_commit Get the pristine-tar commit for the given source package's latest version.
Method has_pristine_tar_branch Whether the repo has a pristine-tar branch.
Method tree_drop_dirs Drop the given top level dirs from the given git tree returning a new tree object.
Method tree_get_dir Get the SHA1 of directory in a given tree
Method vcs_tag_parent If linking to the upstream VCS get the commit id
Instance Variable pristine_tar Undocumented
Property pristine_tar_branch The name of the pristine-tar branch, whether it already exists or not.
Class Method _mangle_version Basic version mangling to replace single characters
Class Method _unmangle_format Reverse of _mangle_version for format
Class Method _unmangle_version Reverse of _mangle_version for version
Static Method _build_legacy_tag Legacy tags (prior to 0.5.5) dropped epochs and didn't honor the '~'
Static Method _sanitize_version sanitize a version so git accepts it as a tag
Static Method _unsanitize_version Reverse _sanitize_version

Inherited from PkgGitRepository (via DebianGitRepository):

Static Method sanitize_prefix Make sure git-archive prefix ends with a slash
Method archive_comp Create a compressed source tree archive with the given options
Method _archive_comp_single Create a compressed source tree archive without submodules
Method _archive_comp_submodules Create a compressed source tree archive with submodules.
def __init__(self, *args, **kwargs):
def commit_dir(self, *args, **kwargs):

Undocumented

def create_branch(self, *args, **kwargs):

Undocumented

def create_tag(self, *args, **kwargs):

Undocumented

def has_rollbacks(self):

Undocumented

def merge(self, *args, **kwargs):

Undocumented

def rollback(self):

Perform a complete rollback

Try to roll back as much as possible and remember what failed.

def rrr(self, refname, action, reftype):

Remember ref for rollback

Parameters
refnameref to roll back
actionthe rollback action (delete, reset, ...)
reftypethe reference type (tag, branch, ...)
def rrr_branch(self, branchname, action='reset-or-delete'):

Undocumented

def rrr_merge(self, commit, action='abortmerge'):

Undocumented

def rrr_tag(self, tagname, action='delete'):

Undocumented

rollback_errors: list =

Undocumented

rollbacks: list =

Undocumented