[PATCH] demandimport: fix level passed to loader of sub-modules

Gregory Szorc gregory.szorc at gmail.com
Sun Nov 8 10:05:16 CST 2015


On Sat, Nov 7, 2015 at 11:39 AM, Pierre-Yves David <
pierre-yves.david at ens-lyon.org> wrote:

>
>
> On 11/07/2015 10:49 AM, Gregory Szorc wrote:
>
>> On Mon, Nov 2, 2015 at 6:10 AM, Yuya Nishihara <yuya at tcha.org
>> <mailto:yuya at tcha.org>> wrote:
>>
>>     # HG changeset patch
>>     # User Yuya Nishihara <yuya at tcha.org <mailto:yuya at tcha.org>>
>>     # Date 1446380349 -32400
>>     #      Sun Nov 01 21:19:09 2015 +0900
>>     # Node ID d779ddd9edd51273de2754748dfcc0db1e1e0f72
>>     # Parent  58b7f3e93bbab749ab16c09df12aae5ba7880708
>>     demandimport: fix level passed to loader of sub-modules
>>
>
> I've pushed that one to the clowncopter.
>
> Thanks goes to Greg for the review.


Come to think of it, this patch should probably be for stable because
without it, "from ..X import Y" will be broken. This could prevent 3rd
party extensions which load 3rd party Python packages from working
correctly. I /think/ this is a regression in 3.6 from my demandimport
refactoring.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20151108/106476e5/attachment.html>


More information about the Mercurial-devel mailing list