git-remote-mediawiki: show progress information when listing pages
Initial phases of push and pull with git-remote-mediawiki can be long on a large wiki. Let the user know what's going on. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Jul 16, 2012 at 21:46 UTC
f690ddfdb7d06eaf5f62d8deb969289d59bed9cd
1 file changed
+3
contrib/mw-to-git/git-remote-mediawiki
+3
@@ -371,6 +371,8 @@ sub get_mw_first_pages {
371
sub get_mw_pages {
372
mw_connect_maybe();
373
374
+ print STDERR "Listing pages on remote wiki...\n";
375
+
376
my %pages; # hash on page titles to avoid duplicates
377
my $user_defined;
378
if (@tracked_pages) {
@@ -394,6 +396,7 @@ sub get_mw_pages {
396
get_all_mediafiles(\%pages);
397
}
398
}
399
+ print STDERR (scalar keys %pages) . " pages found.\n";
400
return %pages;
401
}
402