Mercurial > hg-stable
changeset 4626:eb99af2d845e
Fix for demandimport.py and Windows compiled version.
From Shun-ichi Goto in BTS issue 457 http://www.selenic.com/mercurial/bts/msg2780
author | Lee Cantey <lcantey@gmail.com> |
---|---|
date | Mon, 18 Jun 2007 15:03:55 -0700 |
parents | 23d9f0e66711 |
children | d4e4d0f4fba4 |
files | mercurial/demandimport.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/demandimport.py Mon Jun 18 12:39:43 2007 -0700 +++ b/mercurial/demandimport.py Mon Jun 18 15:03:55 2007 -0700 @@ -96,6 +96,8 @@ mod = _origimport(name, globals, locals) # recurse down the module chain for comp in name.split('.')[1:]: + if not hasattr(mod, comp): + setattr(mod, comp, _demandmod(comp, mod.__dict__, mod.__dict__)) mod = getattr(mod, comp) for x in fromlist: # set requested submodules for demand load