- Jan 05, 2018
-
-
Pulkit Goyal authored
Differential Revision: https://phab.mercurial-scm.org/D1810
-
- Aug 22, 2017
-
-
durin42 authored
-
- Aug 16, 2017
-
-
Jun Wu authored
In chg's case, making modules lazily loaded could actually slow down things since chg pre-imports them. Therefore disable demandimport if chg is being used. This is not done by setting `HGDEMANDIMPORT` chg client-side because that has side-effects on child processes (hooks, etc). Differential Revision: https://phab.mercurial-scm.org/D351
-
- Aug 18, 2017
-
-
Jun Wu authored
The logic is now shared between demandimport{2,3}. Differential Revision: https://phab.mercurial-scm.org/D445
-
- Jul 16, 2017
-
-
Yuya Nishihara authored
In general, the attribute of the same name is overwritten by executing an import statement. import a.b print(a.b.c) # 'c' of a/b/__init__.py from a.b.c import d print(a.b.c) # a/b/c.py However, this appears not true for the scenario described in the test case, and surprisingly, "from a.b.c import d" works even if "a.b.c" is not a module. This patch works around the problem by taking the right module from sys.modules if available.
-
Yuya Nishihara authored
-
Yuya Nishihara authored
_import() was added by 868282fa29d8, but it is identical to _origimport() now.
-
- Apr 27, 2017
-
-
Yuya Nishihara authored
Proxy __dict__ and __doc__ explicitly instead. I'm not sure which is less evil, but this seems slightly simpler than hooking all attribute accesses.
-
- Apr 28, 2017
-
-
Yuya Nishihara authored
It's widely used in our codebase.
-
- May 01, 2017
-
-
Yuya Nishihara authored
_demandmod class is getting bigger, and I don't want to put more things in a dense form.
-
Yuya Nishihara authored
This looks better, and __eq__() may be overridden in an undesired way.
-
- May 21, 2017
-
-
Siddharth Agarwal authored
This implementation uses the new importlib finder/loader functionality available in Python 3.5 and up. # no-check-commit
-
Siddharth Agarwal authored
We're going to use the same ignore list for Python 3.
-
Siddharth Agarwal authored
In Python 3, demand loading is per-package. Keeping demandimport in the mercurial package would disable demand loading for any modules in mercurial.
-