:members:
.. autoexception:: NoRepositoryError
:members:
-
+.. autoexception:: AlreadyVersionedError
+ :members:
+.. autoexception:: NotMigratedError
+ :members:
+.. autoexception:: NotConfiguredError
+ :members:
+.. autoexception:: CorruptedAutoinstallError
+ :members:
+.. autoexception:: NotAutoinstallError
+ :members:
+.. autoexception:: NoTagError
+ :members:
+.. autoexception:: NoLocalTagError
+ :members:
+.. autoexception:: InconsistentPristineTagError
+ :members:
+.. autoexception:: InconsistentScriptsTagError
+ :members:
+.. autoexception:: HeadNotDescendantError
+ :members:
+.. autoexception:: VersionDetectionError
+ :members:
+.. autoexception:: VersionMismatchError
+ :members:
The deployment contains a .scripts-version file, but no .git
or .scripts directory.
"""
+ #: Directory of deployment
+ dir = None
def __init__(self, dir):
self.dir = dir
def __str__(self):
return """This installation was not migrated"""
class AlreadyVersionedError(Error):
+ """The deployment contained a .git directory but no .scripts directory."""
+ #: Directory of deployment
+ dir = None
def __init__(self, dir):
self.dir = dir
def __str__(self):
install using Git."""
class NotConfiguredError(Error):
+ """The install was missing essential configuration."""
+ #: Directory of unconfigured install
+ dir = None
def __init__(self, dir):
self.dir = dir
def __str__(self):
(essential configuration files were not found.)"""
class CorruptedAutoinstallError(Error):
+ """The install was missing a .git directory, but had a .scripts directory."""
+ #: Directory of the corrupted install
+ dir = None
def __init__(self, dir):
self.dir = dir
def __str__(self):
but not a .git directory."""
class NotAutoinstallError(Error):
+ """The directory was not an autoinstall, due to missing .scripts-version file."""
+ #: Directory in question
+ dir = None
def __init__(self, dir):
self.dir = dir
def __str__(self):
"""
class NoTagError(Error):
+ """Deployment has a tag that does not have an equivalent in upstream repository."""
+ #: Missing tag
+ tag = None
def __init__(self, tag):
self.tag = tag
def __str__(self):
ERROR: Could not find tag %s in repository.""" % self.tag
class NoLocalTagError(Error):
+ """Could not find tag in local repository."""
+ #: Missing tag
+ tag = None
def __init__(self, tag):
self.tag = tag
def __str__(self):
ERROR: Could not find tag %s in local repository.""" % self.tag
class InconsistentPristineTagError(Error):
+ """Pristine tag commit ID does not match upstream pristine tag commit ID."""
+ #: Inconsistent tag
+ tag = None
def __init__(self, tag):
self.tag = tag
def __str__(self):
probably means an upstream rebase occured.""" % self.tag
class InconsistentScriptsTagError(Error):
+ """Scripts tag commit ID does not match upstream scripts tag commit ID."""
+ #: Inconsistent tag
+ tag = None
def __init__(self, tag):
self.tag = tag
def __str__(self):
probably means an upstream rebase occurred.""" % self.tag
class HeadNotDescendantError(Error):
+ """HEAD is not connected to tag."""
+ #: Tag that HEAD should have been descendant of.
+ tag = None
def __init__(self, tag):
self.tag = tag
def __str__(self):
pulled, but local user commits were never rebased.""" % self.tag
class VersionDetectionError(Error):
+ """Could not detect real version of application."""
def __str__(self):
return """
ERROR: Could not detect the real version of the application."""
class VersionMismatchError(Error):
+ """Git version of application does not match detected version."""
+ #: Detected version
+ real_version = None
+ #: Version from Git
+ git_version = None
def __init__(self, real_version, git_version):
self.real_version = real_version
self.git_version = git_version