Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-mediawiki: show progress while fetching namespaces
author
Antoine Beaupré
<anarcat@debian.org>
Tue, 7 Nov 2017 16:07:01 +0000
(11:07 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 8 Nov 2017 02:06:33 +0000
(11:06 +0900)
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>
contrib/mw-to-git/git-remote-mediawiki.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
55fefa9
)
diff --git
a/contrib/mw-to-git/git-remote-mediawiki.perl
b/contrib/mw-to-git/git-remote-mediawiki.perl
index c9f46359b813b21e1dabd4da425ea4ef37a92018..af9cbc9d0f7bc296ec728c3b965c26a057c8cf72 100755
(executable)
--- 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;
}