Skip to content

Commit

Permalink
remote-mediawiki: show progress while fetching namespaces
Browse files Browse the repository at this point in the history
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:

Git-Mediawiki/Git-Mediawiki#30

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
anarcat authored and gitster committed Nov 3, 2017
1 parent c072d3a commit 8c7bf64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/mw-to-git/git-remote-mediawiki.perl
Expand Up @@ -279,6 +279,7 @@ sub get_mw_tracked_namespaces {
aplimit => 'max' } )
|| die $mediawiki->{error}->{code} . ': '
. $mediawiki->{error}->{details} . "\n";
print {*STDERR} "$#{$mw_pages} found in namespace $local_namespace ($namespace_id)\n";
foreach my $page (@{$mw_pages}) {
$pages->{$page->{title}} = $page;
}
Expand Down

0 comments on commit 8c7bf64

Please sign in to comment.