Index: tools/push-to-trunk/merge_to_branch.py |
diff --git a/tools/push-to-trunk/merge_to_branch.py b/tools/push-to-trunk/merge_to_branch.py |
index 87ba02b5b32552a6fec3355f9c91a77c96f30dd4..02df5d8d61544c8d12397f04b11841094a218438 100755 |
--- a/tools/push-to-trunk/merge_to_branch.py |
+++ b/tools/push-to-trunk/merge_to_branch.py |
@@ -155,7 +155,7 @@ class FindGitRevisions(Step): |
for bug in re.findall(r"^[ \t]*BUG[ \t]*=[ \t]*(.*?)[ \t]*$", msg, |
re.M): |
bugs.extend(map(lambda s: s.strip(), bug.split(","))) |
- bug_aggregate = ",".join(sorted(bugs)) |
+ bug_aggregate = ",".join(sorted(filter(lambda s: s and s != "none", bugs))) |
if bug_aggregate: |
self["new_commit_msg"] += "BUG=%s\nLOG=N\n" % bug_aggregate |