remote-mediawiki: show progress while fetching namespaces
Without this, the fetch process seems hanged while we fetch page listings across the namespaces. Obviously, it should be possible to silence this with -q, but that's an issue already present everywhere in the code and should be fixed separately: https://github.com/Git-Mediawiki/Git-Mediawiki/issues/30 Signed-off-by: Antoine Beaupré <anarcat@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Antoine Beaupré committed
Nov 7, 2017 at 11:07 UTC
94c9acbf0025d5214c8efcf11389536759410dd8
1 file changed
+1
contrib/mw-to-git/git-remote-mediawiki.perl
+1
@@ -279,6 +279,7 @@ sub get_mw_tracked_namespaces {
279
aplimit => 'max' } )
280
|| die $mediawiki->{error}->{code} . ': '
281
. $mediawiki->{error}->{details} . "\n";
282
+ print {*STDERR} "$#{$mw_pages} found in namespace $local_namespace ($namespace_id)\n";
283
foreach my $page (@{$mw_pages}) {
284
$pages->{$page->{title}} = $page;
285
}