git-remote-mediawiki: allow page names with a ':'
commit2272400c93332629e8c34dcf3b1207159352e539
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Tue, 17 Jul 2012 14:06:00 +0000 (17 16:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Jul 2012 18:53:11 +0000 (17 11:53 -0700)
tree90f0d009e3bc0efd35a3f7d2b4b1ce8037a5e1b9
parentfa316e090a58421c7caf50eefa58f6cb30c6df89
git-remote-mediawiki: allow page names with a ':'

Traditionnally, pages named Foo:Bar are page 'Bar' in namespace 'Foo'.
However, it is also possible to call a page Foo:Bar if 'Foo' is not a
namespace. In this case, the actual name of the page is 'Foo:Bar', in the
main namespace. Since we can't tell with only the filename, query the
wiki for a namespace 'Foo' in these cases, but deal with the case where
no such namespace is found.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/git-remote-mediawiki
contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh