mercurial/commands.py
changeset 2835 2ff57e3113a4
parent 2826 3aeab7bb5adc
child 2842 7706fa503677
child 2854 cdbca3d59518
--- 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