jenkins-bot has submitted this change and it was merged.
Change subject: Fix action's name for checkimages script. ......................................................................
Fix action's name for checkimages script.
+ Deprecate action with typo in name`
Bug: T150720 Change-Id: I5e6c545ec8e7366563227fcf903dfb6954335204 --- M scripts/checkimages.py 1 file changed, 9 insertions(+), 2 deletions(-)
Approvals: jenkins-bot: Verified Huji: Looks good to me, approved
diff --git a/scripts/checkimages.py b/scripts/checkimages.py index 96f191e..9e572a0 100755 --- a/scripts/checkimages.py +++ b/scripts/checkimages.py @@ -25,6 +25,9 @@ -duplicatesreport Report the duplicates in a log *AND* put the template in the images.
+-duplicatereport The -duplicatereport option is deprecated. Use + -duplicatesreport instead. + -sendemail Send an email after tagging.
-break To break the bot after the first check (default: recursive) @@ -1615,14 +1618,18 @@ logFullError = False elif arg == '-commons': commonsActive = True + elif arg == '-duplicatesreport' or arg == '-duplicatereport': + if arg == '-duplicatereport': + pywikibot.tools.issue_deprecation_warning('-duplicatereport', + '-duplicatesreport', + 2) + duplicatesReport = True elif arg.startswith('-duplicates'): duplicatesActive = True if len(arg) == 11: duplicates_rollback = 1 elif len(arg) > 11: duplicates_rollback = int(arg[12:]) - elif arg == '-duplicatereport': - duplicatesReport = True elif arg == '-sendemail': sendemailActive = True elif arg.startswith('-skip'):
pywikibot-commits@lists.wikimedia.org