From f1d0590befaa6b98974f5c649792954280b13f90 Mon Sep 17 00:00:00 2001 From: Ewen Cheslack-Postava Date: Thu, 4 May 2017 17:36:08 -0700 Subject: [PATCH] Don't expose promotion to the user since it is not implemented yet. --- release.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/release.py b/release.py index dbe991c3ec9..022180a6acf 100755 --- a/release.py +++ b/release.py @@ -186,7 +186,7 @@ try: except ValueError: fail("Invalid release version, should be a dotted version number") -rc = raw_input("Release candidate number (or blank to promote latest RC to final release): ") +rc = raw_input("Release candidate number: ") dev_branch = '.'.join(release_version_parts[:3]) docs_version = ''.join(release_version_parts[:3]) @@ -198,14 +198,15 @@ tags = cmd_output('git tag').split() if release_version in tags: fail("The specified version has already been tagged and released.") +# TODO promotion if not rc: + fail("Automatic Promotion is not yet supported.") + # Find the latest RC and make sure they want to promote that one rc_tag = sorted([t for t in tags if t.startswith(release_version + '-rc')])[-1] if not user_ok("Found %s as latest RC for this release. Is this correct? (y/n): "): fail("This script couldn't determine which RC tag to promote, you'll need to fix up the RC tags and re-run the script.") - # TODO promotion - sys.exit(0) # Prereq checks