]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/deploy.py
More remaster points!
[wizard.git] / wizard / deploy.py
index 12a27818cff1b4b4e235cd7830863b9ab048ae10..651091097d407236b9f06507012c8e881da6e879 100644 (file)
@@ -243,10 +243,12 @@ class Deployment(object):
             if not compare_tags(self.app_version.pristine_tag):
                 raise InconsistentPristineTagError(self.app_version.pristine_tag)
             if not compare_tags(self.app_version.wizard_tag):
+                # XXX Try remastering
                 raise InconsistentWizardTagError(self.app_version.wizard_tag)
             parent = repo_rev_parse(self.app_version.wizard_tag)
             merge_base = shell.safeCall("git", "merge-base", parent, "HEAD", strip=True)
             if merge_base != parent:
+                # XXX Try remastering
                 raise HeadNotDescendantError(self.app_version.wizard_tag)
 
     def verifyConfigured(self):
@@ -665,7 +667,8 @@ class InconsistentWizardTagError(Error):
         return """
 
 ERROR: Local wizard tag %s did not match repository's.  This
-probably means an upstream rebase occurred.""" % self.tag
+probably means an upstream rebase occurred.  Try
+'git fetch --tags && wizard remaster'.""" % self.tag
 
 class HeadNotDescendantError(Error):
     """HEAD is not connected to tag."""
@@ -678,7 +681,8 @@ class HeadNotDescendantError(Error):
 
 ERROR: HEAD is not a descendant of %s.  This probably
 means that an upstream rebase occurred, and new tags were
-pulled, but local user commits were never rebased.""" % self.tag
+pulled, but local user commits were never rebased.  Try
+running 'wizard remaster'.""" % self.tag
 
 class VersionDetectionError(Error):
     """Could not detect real version of application."""