diff -r a247751652ba -r fe31f834a9ff mercurial/demandimport.py --- a/mercurial/demandimport.py Sun Oct 10 00:38:57 2010 +0100 +++ b/mercurial/demandimport.py Tue Sep 14 23:00:39 2010 +0200 @@ -45,7 +45,7 @@ if not self._module: head, globals, locals, after, level = self._data if level is not None: - mod = _origimport(head, globals, locals, level) + mod = _origimport(head, globals, locals, level=level) else: mod = _origimport(head, globals, locals) # load submodules