diff -r a9e92b11a3f2 -r 6f72e7d28b35 mercurial/hg.py --- a/mercurial/hg.py Mon Sep 23 11:37:06 2013 -0700 +++ b/mercurial/hg.py Sat Sep 21 21:33:29 2013 +0900 @@ -101,7 +101,7 @@ """return a repository object for the specified path""" obj = _peerlookup(path).instance(ui, path, create) ui = getattr(obj, "ui", ui) - for name, module in extensions.extensions(): + for name, module in extensions.extensions(ui): hook = getattr(module, 'reposetup', None) if hook: hook(ui, obj)