git-commit-vandalism/contrib/mw-to-git
Antoine Beaupré da2a180977 remote-mediawiki: support fetching from (Main) namespace
When we specify a list of namespaces to fetch from, by default the MW
API will not fetch from the default namespace, refered to as "(Main)"
in the documentation:

https://www.mediawiki.org/wiki/Manual:Namespace#Built-in_namespaces

I haven't found a way to address that "(Main)" namespace when getting
the namespace ids: indeed, when listing namespaces, there is no
"canonical" field for the main namespace, although there is a "*"
field that is set to "" (empty). So in theory, we could specify the
empty namespace to get the main namespace, but that would make
specifying namespaces harder for the user: we would need to teach
users about the "empty" default namespace. It would also make the code
more complicated: we'd need to parse quotes in the configuration.

So we simply override the query here and allow the user to specify
"(Main)" since that is the publicly documented name.

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-11-08 11:06:33 +09:00
..
bin-wrapper git-remote-mediawiki: add a git bin-wrapper for developement 2013-07-08 08:55:53 -07:00
Git git-remote-mediawiki: add preview subcommand into git mw 2013-07-08 08:56:14 -07:00
t Spelling fixes 2017-06-27 10:35:49 -07:00
.gitignore git-remote-mediawiki: ignore generated git-mw 2013-08-13 09:52:22 -07:00
.perlcriticrc Spelling fixes 2016-08-11 14:35:42 -07:00
git-mw.perl git-remote-mediawiki: add preview subcommand into git mw 2013-07-08 08:56:14 -07:00
git-remote-mediawiki.perl remote-mediawiki: support fetching from (Main) namespace 2017-11-08 11:06:33 +09:00
git-remote-mediawiki.txt git-remote-mediawiki: new wiki URL in documentation 2013-04-04 09:54:38 -07:00
Makefile Merge branch 'jn/mediawiki-makefile-updates' 2013-12-05 13:00:23 -08:00