jenkins-bot has submitted this change and it was merged.
Change subject: git-logs: option to make 'INFO' output optional
......................................................................
git-logs: option to make 'INFO' output optional
Change-Id: I877ff0028e314f7fd6318239f2ef7040f95894da
---
M git-logs/log_updates.py
1 file changed, 6 insertions(+), 2 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/git-logs/log_updates.py b/git-logs/log_updates.py
index ef676ac..7155aed 100755
--- a/git-logs/log_updates.py
+++ b/git-logs/log_updates.py
@@ -12,10 +12,12 @@
BUG_URL = '//bugzilla.wikimedia.org/show_bug.cgi?id=%s'
headings = ["dependencies", "stories", "bugs", "qa", "hygiene", "i18n",
"regressions", "other"]
+DEBUG = False
def info(msg):
- print "[INFO] %s" % msg
+ if DEBUG:
+ print "[INFO] %s" % msg
def get_commit_range(repodir, commit=None):
@@ -148,12 +150,14 @@
commit = None
output_filename = None
try:
- opts, args = getopt.getopt(sys.argv[1:], "c:o:")
+ opts, args = getopt.getopt(sys.argv[1:], "c:o:v")
for opt, arg in opts:
if opt == '-c':
commit = arg
elif opt == '-o':
output_filename = arg
+ elif opt == '-v':
+ DEBUG = True
except getopt.GetoptError:
pass
f_name = generate_change_log('.', commit)
--
To view, visit https://gerrit.wikimedia.org/r/110284
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I877ff0028e314f7fd6318239f2ef7040f95894da
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/tools/release
Gerrit-Branch: master
Gerrit-Owner: Awjrichards <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits