summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Antoine Beaupré <anarcat@debian.org>2017-11-07 11:07:00 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-08 11:06:33 +0900
commit55fefa9e94e0633cdd85f6cded42384cbeaf8a61 (patch)
treeeca1bd34e70c625bf59eb02068667d758d5b4b4d
parentremote-mediawiki: support fetching from (Main) namespace (diff)
downloadtgif-55fefa9e94e0633cdd85f6cded42384cbeaf8a61.tar.xz
remote-mediawiki: process namespaces in order
Ideally, we'd process them in numeric order since that is more logical, but we can't do that yet since this is where we find the numeric identifiers in the first place. Lexicographic order is a good compromise. Signed-off-by: Antoine Beaupré <anarcat@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index 0e60b85c8b..c9f46359b8 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -263,7 +263,7 @@ sub get_mw_tracked_categories {
sub get_mw_tracked_namespaces {
my $pages = shift;
- foreach my $local_namespace (@tracked_namespaces) {
+ foreach my $local_namespace (sort @tracked_namespaces) {
my $namespace_id;
if ($local_namespace eq "(Main)") {
$namespace_id = 0;