HomePhabricator

demandimport: disable if chg is being used

Authored by quark.

Description

demandimport: disable if chg is being used

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

Details

Committed
quarkAug 16 2017, 1:44 PM
Differential Revision
D351: demandimport: disable if chg is being used
Parents
rHG8fb5212652ec: demandimport: move HGDEMANDIMPORT test to __init__.py
Branches
Unknown
Tags
Unknown