demandimport and ldap hook

Matt Mackall mpm at selenic.com
Thu Jun 23 15:40:17 CDT 2011


On Thu, 2011-06-23 at 02:35 -0700, JamieEchlin wrote:
> > It will make Mercurial startup substantially slower:
> 
> OK, but in absolute terms I'm not sure it's that significant, the hook will
> only be on the golden repo and presumably disabling demandimport in a hook
> only comes into play if the pretxnchangegroup hooks run.
> 
> > It may also outright break in the future
> 
> OK. I didn't find much info about the blacklist, looks like it needs to be
> added to the ignore list in demandimport.py itself... all other things being
> equal I'd rather not change the source code, because it means something else
> to patch, package and distribute.

Welcome to Python:

from mercurial import demandimport
demandimport.ignore.append("dumbmodule")

import dumbmodule

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list