Make cherry-pick script ask for version for commit message when unknown
Change-Id: Icef31549a4f0ffaef4f06903b88b67925f2643b5
diff --git a/tools/cherry-pick.py b/tools/cherry-pick.py
index a6c21c1..8e92b6a 100755
--- a/tools/cherry-pick.py
+++ b/tools/cherry-pick.py
@@ -94,9 +94,11 @@
editor = os.environ.get('EDITOR')
if not editor:
editor = 'vi'
- print("Opening %s for version update with %s" %
+ input("\nCannot automatically determine the new version.\n"
+ + "Press [enter] to edit %s for version update with editor '%s'." %
(VERSION_FILE, editor))
subprocess.run([editor, VERSION_FILE])
+ new_version = input('Please enter the new version for the commit message: ')
message = ("Version %s\n\n" % new_version)
for bug in sorted(bugs):