/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-22 17:08:27 UTC
  • mfrom: (5107.3.8 new_branch_and_repo_hooks)
  • Revision ID: pqm@pqm.ubuntu.com-20100422170827-h0bb41yq5nkosu6t
(vila) Add 'post_repo_init', 'post_branch_init' and 'post_switch' hooks. (Marco Pantaleoni)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3171
3171
        """
3172
3172
        raise NotImplementedError(self.open)
3173
3173
 
 
3174
    def _run_post_repo_init_hooks(self, repository, a_bzrdir, shared):
 
3175
        from bzrlib.bzrdir import BzrDir, RepoInitHookParams
 
3176
        hooks = BzrDir.hooks['post_repo_init']
 
3177
        if not hooks:
 
3178
            return
 
3179
        params = RepoInitHookParams(repository, self, a_bzrdir, shared)
 
3180
        for hook in hooks:
 
3181
            hook(params)
 
3182
 
3174
3183
 
3175
3184
class MetaDirRepositoryFormat(RepositoryFormat):
3176
3185
    """Common base class for the new repositories using the metadir layout."""