/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/repofmt/pack_repo.py

  • Committer: Marco Pantaleoni
  • Date: 2010-03-24 14:35:25 UTC
  • mto: This revision was merged to the branch mainline in revision 5174.
  • Revision ID: panta@elasticworld.org-20100324143525-00sej430c23d3gto
Added the new hooks 'post_branch', 'post_switch' and 'post_repo_init',
called respectively whenever a new branch is created, when a checkout is
switched to a different branch and when a repository is initialized
(created).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2551
2551
        utf8_files = [('format', self.get_format_string())]
2552
2552
 
2553
2553
        self._upload_blank_content(a_bzrdir, dirs, files, utf8_files, shared)
2554
 
        return self.open(a_bzrdir=a_bzrdir, _found=True)
 
2554
        repository = self.open(a_bzrdir=a_bzrdir, _found=True)
 
2555
        self._run_post_repo_init_hooks(repository, a_bzrdir, shared)
 
2556
        return repository
2555
2557
 
2556
2558
    def open(self, a_bzrdir, _found=False, _override_transport=None):
2557
2559
        """See RepositoryFormat.open().