[PATCH 1 of 57] use absolute_import
Gregory Szorc
gregory.szorc at gmail.com
Sun Aug 9 03:53:11 UTC 2015
Pierre-Yves et al,
I have added absolute_import to most mercurial.* modules it can be added to
without other changes. There are still a number of stragglers due to:
* circular dependencies (not captured by static analysis)
* sub-package import triggering false positives in the import module checker
* files importing modules with C extensions
* me not touching extensions or support scripts
But you have to start somewhere.
hg pull -r 5ab6d3932f39 https://hg.mozilla.org/users/gszorc_mozilla.com/hg
You are probably interesting in ee3d290b4b82::5ab6d3932f39.
These patches may require the demandimport changes I sent to this list. Or
at least we should queue the demandimport changes before these, otherwise
performance may regress a bit since demandimport doesn't lazy load "from .
import X" syntax without the patches. If you just "merge" 5ab6d3932f39 to
clowncopter, etc, things should just work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150808/cf798c10/attachment.html>
More information about the Mercurial-devel
mailing list