OSDN Git Service

remote-mediawiki: skip virtual namespaces
authorAntoine Beaupré <anarcat@debian.org>
Tue, 7 Nov 2017 16:06:58 +0000 (11:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Nov 2017 02:06:33 +0000 (11:06 +0900)
commitdb3364352da98f20915e1b838616688f388fad8b
tree74c6b85cfa988aa344915196b6c6cd956ea1abbf
parent09eebbadca58dbf8e415678eeef8de54c0be6534
remote-mediawiki: skip virtual namespaces

Virtual namespaces do not correspond to pages in the database and are
automatically generated by MediaWiki. It makes little sense,
therefore, to fetch pages from those namespaces and the MW API doesn't
support listing those pages.

According to the documentation, those virtual namespaces are currently
"Special" (-1) and "Media" (-2) but we treat all negative namespaces
as "virtual" as a future-proofing mechanism.

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/git-remote-mediawiki.perl