remote-mediawiki: show known namespace choices on failure
commit09eebbadca58dbf8e415678eeef8de54c0be6534
authorAntoine Beaupré <anarcat@debian.org>
Tue, 7 Nov 2017 16:06:57 +0000 (7 11:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Nov 2017 02:06:33 +0000 (8 11:06 +0900)
tree596cb50b4d0ed925ef7529139856712c2bf98732
parentcc92338004d6f3e613c9446ccdcddf11433be85f
remote-mediawiki: show known namespace choices on failure

If we fail to find a requested namespace, we should tell the user
which ones we know about, since those were already fetched. This
allows users to fetch all namespaces by specifying a dummy namespace,
failing, then copying the list of namespaces in the config.

Eventually, we should have a flag that allows fetching all namespaces
automatically.

Reviewed-by: Antoine Beaupré <anarcat@debian.org>
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