[PATCH] Fixed bug where is_core assumed linear release sequence
authorNeil Bowers <neil@bowers.com>
Mon, 23 Sep 2013 22:35:18 +0000 (23:35 +0100)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Mon, 23 Sep 2013 22:35:18 +0000 (23:35 +0100)
commit717ace6eb4102762ffd65f965ff32b26947eacc9
treeda0f93012b1b9d5197988e6de00afb2236292f5f
parentc6ba15252667d61624481a75c7b61acee4e89cb3
[PATCH] Fixed bug where is_core assumed linear release sequence

If you specified a version of the module, is_core has to track through
releases, as the %delta data structure only records where a module
version number changes in core, not every module version number in every release.
I was naively trawling the releases in numerical order, but %delta includes
information that let's you construct the release tree.

This fix only traverses the branch of the overall release tree that leads
to the specified Perl release. Further explanation and example in blog post:

    http://neilb.org/2013/09/21/adding-is-core.html

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
dist/Module-CoreList/Changes
dist/Module-CoreList/lib/Module/CoreList.pm
dist/Module-CoreList/t/is_core.t