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

svn path=/main/branches/2.1.2/; revision=8924

bin/repoman

index 74d64b9c5c7877d70093cdd7cf3a6f263fc2ad29..ec3f99ceb213b4e9598a716015bfcd5d9e4a022d 100755 (executable)
@@ -1975,6 +1975,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()