(bug 54686) re-enable support for svn repo revision detection

* re-enable old code still there
* add support for git sha hash (cf. change 85523)
* try to avoid to excessive use of try...except structures
* hash is primary identifier thus swapped with revision number
* revision number for git prefixed with "g" for svn with "s"
* some PEP8

Change-Id: I0aa62bc722df77d06c6e0bc10b87c4d284c63ede
Bug 60739 - Missing message for the anti-spam filter error

Intercept 'spamblacklist' in data returned by edit action.

Change-Id: If522c17be3f3ed9e41a7401713c1ab8f2e7d8170
[SYNC] Synchronize with core

* [BUGFIX] change site.lang to site.code [1]
* allow empty translations [2]

[1]
The i18n files use WMF language codes instead of ISO 639 language
codes. This means we also have to use these in our translations.

e.g. site code of the Alemannic wikipedia is 'als' whereas the
language code is 'gsw'. The i18n files use 'als', while we now
try to lookup 'gsw', which does not exist.

[2]
Check for 'trans is None' (= no translation found) instead of
for 'not trans' (= no translation found, or empty translation)

Can be relevant for empty configuration variables.

Change-Id: I519eae0c7c87d790c99c0c21658f87aa98409191
[bug 60564] Re-enable pageName for summary message (update from core)

- pageName is extracted from command option handled by pagegenerators
  if availlable. Otherwise we ask for the message.
- -images option is deprecated. -imagelinks from pagegenerators is
  used. We just append the right option command to the option list
- deprecated setAction() is removed
- docu replacement from pagegenerators

Change-Id: I203c224b8c802e5752b796a7aaa305c5b400419e
weblinkchecker.py: add the ability to run the script with XML dump

Like reflinks.py
Bug: 55039

Change-Id: I7ba4f460897316ae1f5cbcca0080f8c3262d9abf
Ignore InvalidIsbnException with -format option (update from core)

Do not raise the exception but continue with the next number/page

Change-Id: Iac8d7d33127fe522c2f36dacaa12d8c8f9825646
Merge "(bug 54686) re-enable support for svn repo revision detection"
Updated pywikibot/compat
Project: pywikibot/i18n  b2a9ec946c2b76c81c387e1e369c7fb44727c53f

Localisation updates from https://translatewiki.net.

Change-Id: I8ab3e8e439bb97dd268891e7a88479ba2d1f1e31
Updated pywikibot/compat
Project: pywikibot/i18n  c3c7b9738857a5270cd08239e201ae82c350be8d

i18n for misspelling script

Change-Id: I08c76470fe66a0cfc972a7a407906c3234a0d97b
enable category_redirect.py for sh-wiki

Change-Id: I308cbcc7d704b121f106112f9a56ebbde04e6aa8
Merge "enable category_redirect.py for sh-wiki"
mw release 1.23wmf18

Change-Id: Ie99c7ae51966b4ac62d22eaf8fa8e790bc2aae52
update language_by_size

Change-Id: I00c1664fde1c0f27898e0c0a0806f9fc30255a20
Merge "[SYNC] Synchronize with core"
remove old debugging stuff

Change-Id: I7882cf55a99d11d256e3c241b536644b3f2978f0
Merge "[bug 60564] Re-enable pageName for summary message (update from core)"
Don't use SSL if not available

There might still be some installations
with httplib without HTTPS for some reason.

Don't try to use https on those (in case
of Wikipedia, the use of SSL was actually
forced).

Change-Id: I5809364eb02d8669fc2b62734ca1e3e48824b129
Merge "Don't use SSL if not available"
Merge "remove old debugging stuff"
Updated pywikibot/compat
Project: pywikibot/i18n  6d09c308a0890e9bfd49231ba463b98911deaf2a

i18n for spamremove.py

Change-Id: I93a6598f8681407814dda4cdc15ce85f6b6a145c