Prompt the user before letting the editor
authorZac Medico <zmedico@gentoo.org>
Fri, 14 Dec 2007 11:41:45 +0000 (11:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 14 Dec 2007 11:41:45 +0000 (11:41 -0000)
take over the screen so there is an
opportunity to review any QA warnings.

svn path=/main/trunk/; revision=8923

bin/repoman

index e0662a5179158fa6c17410da25b246af6de735d8..461b0bc9f5baf061c8cb092ae2ea36ffc5d97a6c 100755 (executable)
@@ -1794,6 +1794,11 @@ else:
                try:
                        editor = os.environ.get("EDITOR")
                        if editor and editor_is_executable(editor):
+                               # Prompt the user before letting the editor
+                               # take over the screen so there is an
+                               # opportunity to review any QA warnings.
+                               print "Press \"Enter\" to launch the editor for a commit message, or Ctrl-c to abort."
+                               sys.stdin.readline()
                                commitmessage = get_commit_message_with_editor(editor)
                        else:
                                commitmessage = get_commit_message_with_stdin()