develooper Front page | perl.perl5.porters | Postings from June 2016

Change sort order of MANIFEST file

Thread Next
From:
demerphq
Date:
June 21, 2016 19:49
Subject:
Change sort order of MANIFEST file
Message ID:
CANgJU+Xrw_RFuTYWWqm30kAfzBFhEUBw-S8a1HARgAGf1fs+_w@mail.gmail.com
I was getting a little annoyed at the sort order of the MANIFEST file,
and ended up hacking up something I think is a little nicer to read
and review. Not to mention easier to predict in terms of where you
find something, and where the proper sort order is.

The old order was scrubbed dictionary order, which IMO regularly did
weird things to the order of files like Foo/Bar.pm and Foo.pm and
Foo-Bar/Thing.pm

So I pushed 59dc1addcceb34465dde8cda10dd17519cc9e5fb to chanage it.
Its in the smoke-me/no_xhv_fill branch for now, but if people object I
will drop it. (Please actually review what the new order looks like
before you complain, it is not /that/ different, and I bet 90% less
surprising.)

The logic is to sort on the filepath with slashes replaced with nulls,
and dots replaced with null dot. This means that cpan/CPAN/ goes
before cpan/CPAN-META/ but that lib/Foo/Bar.pm goes before everything
(sane) in lib/Foo/Bar/.

FWIW, I am fine with almost any ordering other than the one we
currently use as IMO it produces silly results /often/.

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About