Skip to content

Commit 94c9acb

Browse files
anarcatgitster
authored andcommitted
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: Git-Mediawiki/Git-Mediawiki#30 Signed-off-by: Antoine Beaupré <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 55fefa9 commit 94c9acb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/mw-to-git/git-remote-mediawiki.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ sub get_mw_tracked_namespaces {
279279
aplimit => 'max' } )
280280
|| die $mediawiki->{error}->{code} . ': '
281281
. $mediawiki->{error}->{details} . "\n";
282+
print {*STDERR} "$#{$mw_pages} found in namespace $local_namespace ($namespace_id)\n";
282283
foreach my $page (@{$mw_pages}) {
283284
$pages->{$page->{title}} = $page;
284285
}

0 commit comments

Comments
 (0)