Skip to content

Commit 55fefa9

Browse files
anarcatgitster
authored andcommitted
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>
1 parent da2a180 commit 55fefa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mw-to-git/git-remote-mediawiki.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ sub get_mw_tracked_categories {
263263

264264
sub get_mw_tracked_namespaces {
265265
my $pages = shift;
266-
foreach my $local_namespace (@tracked_namespaces) {
266+
foreach my $local_namespace (sort @tracked_namespaces) {
267267
my $namespace_id;
268268
if ($local_namespace eq "(Main)") {
269269
$namespace_id = 0;

0 commit comments

Comments
 (0)