jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/326923 )
Change subject: site.py: Adding new warnings 'nochange' and 'duplicateversions' ......................................................................
site.py: Adding new warnings 'nochange' and 'duplicateversions'
It appears only when the uploaded file is duplicate with the current version or old versions of the file under the same filename.
The messages are from MediaWiki i18n/en.json
Bug: T153060 Change-Id: I6008bf855d4cbddabcdbd30d9cc9cafd7e87f7c5 --- M pywikibot/site.py 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: Magul: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 5db67aa..92245fd 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -5930,6 +5930,12 @@ '"%(msg)s".', 'bad-prefix': 'Target filename has a bad prefix %(msg)s.', 'page-exists': 'Target filename exists but with a different file %(msg)s.', + + # API-returned message string will be timestamps, not much use here + 'nochange': 'The upload is an exact duplicate of the current version of ' + 'this file.', + 'duplicateversions': 'The upload is an exact duplicate of older ' + 'version(s) of this file.', }
# An offset != 0 doesn't make sense without a file key
pywikibot-commits@lists.wikimedia.org