summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2012-07-16 19:46:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-16 19:52:40 (GMT)
commitf690ddfdb7d06eaf5f62d8deb969289d59bed9cd (patch)
treede6154bd359838beb11d3926fce36f1c03d88ae8 /contrib
parent5c481745fbed5aa0eb63726c9e05538ededa63bb (diff)
downloadgit-f690ddfdb7d06eaf5f62d8deb969289d59bed9cd.zip
git-f690ddfdb7d06eaf5f62d8deb969289d59bed9cd.tar.gz
git-f690ddfdb7d06eaf5f62d8deb969289d59bed9cd.tar.bz2
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki b/contrib/mw-to-git/git-remote-mediawiki
index 517a4db..729a0bc 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;
}