From: Matthieu Moy Date: Mon, 16 Jul 2012 19:46:40 +0000 (+0200) Subject: git-remote-mediawiki: show progress information when listing pages X-Git-Tag: v1.7.12-rc0~8^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f690ddfdb7d06eaf5f62d8deb969289d59bed9cd;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/mw-to-git/git-remote-mediawiki b/contrib/mw-to-git/git-remote-mediawiki index 517a4db3f..729a0bc84 100755 --- a/contrib/mw-to-git/git-remote-mediawiki +++ b/contrib/mw-to-git/git-remote-mediawiki @@ -371,6 +371,8 @@ sub get_mw_first_pages { sub get_mw_pages { mw_connect_maybe(); + print STDERR "Listing pages on remote wiki...\n"; + my %pages; # hash on page titles to avoid duplicates my $user_defined; if (@tracked_pages) { @@ -394,6 +396,7 @@ sub get_mw_pages { get_all_mediafiles(\%pages); } } + print STDERR (scalar keys %pages) . " pages found.\n"; return %pages; }