git-remote-mediawiki: show progress information when listing pages
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki
index 517a4db3ff50a400e5603c95b02fb59a552bd700..729a0bc842ca2331b640af7d6e3841ef6b099a3c 100755 (executable)
@@ -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;
 }