Instead of all modes, only in commit mode save an extra copy of QA
authorZac Medico <zmedico@gentoo.org>
Sat, 15 Dec 2007 04:04:38 +0000 (04:04 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 15 Dec 2007 04:04:38 +0000 (04:04 -0000)
output for display in $EDITOR. (trunk r8928)

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

bin/repoman

index 05ccecf19c518de60ee3dd542bb1ec8767b5f723..a8ed9b87350986eff2d4580edd494c1d2bd23e80 100755 (executable)
@@ -1855,7 +1855,9 @@ dofull=0
 # once the editor has taken over the screen.
 qa_output = StringIO.StringIO()
 style_file = ConsoleStyleFile(sys.stdout)
-style_file.write_listener = qa_output
+if mymode == 'commit' and \
+       (not commitmessage or not commitmessage.strip()):
+       style_file.write_listener = qa_output
 console_writer = StyleWriter(file=style_file, maxcol=9999)
 console_writer.style_listener = style_file.new_styles