yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject yetus git commit: YETUS-425 Remove empty tables while generating changelog
Date Thu, 14 Jul 2016 12:55:04 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 9b1f60de6 -> 36210cdec


YETUS-425 Remove empty tables while generating changelog

Signed-off-by: Allen Wittenauer <aw@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/36210cde
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/36210cde
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/36210cde

Branch: refs/heads/master
Commit: 36210cdec5f54f17da6db37e11158a4414887bba
Parents: 9b1f60d
Author: Ajay Yadava <ajaynsit@gmail.com>
Authored: Fri Jul 8 10:08:18 2016 +0530
Committer: Allen Wittenauer <aw@apache.org>
Committed: Thu Jul 14 05:54:54 2016 -0700

----------------------------------------------------------------------
 release-doc-maker/releasedocmaker.py | 88 +++++++++++++++++--------------
 1 file changed, 48 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/36210cde/release-doc-maker/releasedocmaker.py
----------------------------------------------------------------------
diff --git a/release-doc-maker/releasedocmaker.py b/release-doc-maker/releasedocmaker.py
index aa5f5f7..824fcdf 100755
--- a/release-doc-maker/releasedocmaker.py
+++ b/release-doc-maker/releasedocmaker.py
@@ -911,46 +911,54 @@ def main():
         reloutputs.write_all("\n\n")
         reloutputs.close()
 
-        choutputs.write_all("### INCOMPATIBLE CHANGES:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(incompatlist)
-
-        choutputs.write_all("\n\n### IMPORTANT ISSUES:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(importantlist)
-
-        choutputs.write_all("\n\n### NEW FEATURES:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(newfeaturelist)
-
-        choutputs.write_all("\n\n### IMPROVEMENTS:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(improvementlist)
-
-        choutputs.write_all("\n\n### BUG FIXES:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(buglist)
-
-        choutputs.write_all("\n\n### TESTS:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(testlist)
-
-        choutputs.write_all("\n\n### SUB-TASKS:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(subtasklist)
-
-        choutputs.write_all("\n\n### OTHER:\n\n")
-        choutputs.write_all(CHANGEHDR1)
-        choutputs.write_all(CHANGEHDR2)
-        choutputs.write_list(otherlist)
-        choutputs.write_list(tasklist)
+        if incompatlist:
+            choutputs.write_all("### INCOMPATIBLE CHANGES:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(incompatlist)
+
+        if importantlist:
+            choutputs.write_all("\n\n### IMPORTANT ISSUES:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(importantlist)
+
+        if newfeaturelist:
+            choutputs.write_all("\n\n### NEW FEATURES:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(newfeaturelist)
+
+        if improvementlist:
+            choutputs.write_all("\n\n### IMPROVEMENTS:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(improvementlist)
+
+        if buglist:
+            choutputs.write_all("\n\n### BUG FIXES:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(buglist)
+
+        if testlist:
+            choutputs.write_all("\n\n### TESTS:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(testlist)
+
+        if subtasklist:
+            choutputs.write_all("\n\n### SUB-TASKS:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(subtasklist)
+
+        if tasklist or otherlist:
+            choutputs.write_all("\n\n### OTHER:\n\n")
+            choutputs.write_all(CHANGEHDR1)
+            choutputs.write_all(CHANGEHDR2)
+            choutputs.write_list(otherlist)
+            choutputs.write_list(tasklist)
 
         choutputs.write_all("\n\n")
         choutputs.close()


Mime
View raw message