summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@debian.org>2017-11-07 16:07:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-11-08 02:06:33 (GMT)
commit94c9acbf0025d5214c8efcf11389536759410dd8 (patch)
tree23888bf48d64076484a7391d3fa0cf80a0d9de94 /contrib/mw-to-git
parent55fefa9e94e0633cdd85f6cded42384cbeaf8a61 (diff)
downloadgit-94c9acbf0025d5214c8efcf11389536759410dd8.zip
git-94c9acbf0025d5214c8efcf11389536759410dd8.tar.gz
git-94c9acbf0025d5214c8efcf11389536759410dd8.tar.bz2
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>
Diffstat (limited to 'contrib/mw-to-git')
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index c9f4635..af9cbc9 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -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;
}