diff mercurial/commands.py @ 2835:2ff57e3113a4

call reposetup functions of extension modules whenever repo created
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Thu, 10 Aug 2006 15:44:05 -0700
parents 3aeab7bb5adc
children 7706fa503677 cdbca3d59518
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3545,6 +3545,7 @@ def dispatch(args):
                         mod = sys.modules[name]
                         if hasattr(mod, 'reposetup'):
                             mod.reposetup(u, repo)
+                            hg.repo_setup_hooks.append(mod.reposetup)
                 except hg.RepoError:
                     if cmd not in optionalrepo.split():
                         raise