"Eric W. Biederman" <[email protected]> wrote: > > Date: Thu, 16 May 2019 19:26:47 -0500 > > To make the results reproducible and comprehensible when > a large number of mail boxes are being processed process the > mail boxes in sorted order, instead of in random hash order. > > Signed-off-by: "Eric W. Biederman" <[email protected]> > --- > lib/PublicInbox/Config.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm > index 9f3f8df7eeaa..9ec00b0ddb6d 100644 > --- a/lib/PublicInbox/Config.pm > +++ b/lib/PublicInbox/Config.pm > @@ -128,7 +128,7 @@ sub each_inbox { > } > } else { > my %seen; > - foreach my $k (keys %$self) { > + foreach my $k (sort keys %$self) { > $k =~ m!\Apublicinbox\.([^/]+)\.mainrepo\z! or next; > next if $seen{$1}; > $seen{$1} = 1;
I'm not sure if that code path happens outside of tests. If it's parsing "git config -l" output, it'll use section_order which preserves the ordering of the config file. Will take a deeper look tomorrow (and possibly rewrite those tests to parse a scalarref instead of just taking a hashref). -- unsubscribe: [email protected] archive: https://public-inbox.org/meta/
