diff mercurial/hg.py @ 4818:616a5adbf402

extensions: untangle some recursive dependencies
author Matt Mackall <mpm@selenic.com>
date Thu, 05 Jul 2007 15:37:23 -0500
parents 63b9d2deed48
children bf10a03a6b24
line wrap: on
line diff
--- a/mercurial/hg.py	Tue Jul 03 00:13:52 2007 +0900
+++ b/mercurial/hg.py	Thu Jul 05 15:37:23 2007 -0500
@@ -10,7 +10,7 @@
 from repo import *
 from i18n import _
 import localrepo, bundlerepo, httprepo, sshrepo, statichttprepo
-import errno, lock, os, shutil, util, cmdutil
+import errno, lock, os, shutil, util, cmdutil, extensions
 import merge as _merge
 import verify as _verify
 
@@ -50,13 +50,11 @@
             return False
     return repo.local()
 
-repo_setup_hooks = []
-
 def repository(ui, path='', create=False):
     """return a repository object for the specified path"""
     repo = _lookup(path).instance(ui, path, create)
     ui = getattr(repo, "ui", ui)
-    for hook in repo_setup_hooks:
+    for hook in extensions.setuphooks:
         hook(ui, repo)
     return repo