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

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

bin/repoman

index dcd5865591c651d4f312427f21f7cddd00dfd54f..05ec4fd507e9853322be48c0800c97128d73a771 100755 (executable)
@@ -1681,7 +1681,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 options.mode == '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