Skip to content

Commit

Permalink
remote-mediawiki: process namespaces in order
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
anarcat authored and gitster committed Nov 1, 2017
1 parent cd99f4e commit d9fb43e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/mw-to-git/git-remote-mediawiki.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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, $mw_pages);
if ($local_namespace eq "(Main)") {
$namespace_id = 0;
Expand Down

0 comments on commit d9fb43e

Please sign in to comment.