/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: Martin Pool
  • Date: 2010-04-28 07:03:38 UTC
  • mfrom: (5188 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5189.
  • Revision ID: mbp@sourcefrog.net-20100428070338-2af8y3takgfkrkyp
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
2588
2588
            keys = tsort.topo_sort(parent_map)
2589
2589
        return [None] + list(keys)
2590
2590
 
2591
 
    def pack(self, hint=None):
 
2591
    def pack(self, hint=None, clean_obsolete_packs=False):
2592
2592
        """Compress the data within the repository.
2593
2593
 
2594
2594
        This operation only makes sense for some repository types. For other
2604
2604
            obtained from the result of commit_write_group(). Out of
2605
2605
            date hints are simply ignored, because concurrent operations
2606
2606
            can obsolete them rapidly.
 
2607
 
 
2608
        :param clean_obsolete_packs: Clean obsolete packs immediately after
 
2609
            the pack operation.
2607
2610
        """
2608
2611
 
2609
2612
    def get_transaction(self):
3175
3178
        """
3176
3179
        raise NotImplementedError(self.open)
3177
3180
 
 
3181
    def _run_post_repo_init_hooks(self, repository, a_bzrdir, shared):
 
3182
        from bzrlib.bzrdir import BzrDir, RepoInitHookParams
 
3183
        hooks = BzrDir.hooks['post_repo_init']
 
3184
        if not hooks:
 
3185
            return
 
3186
        params = RepoInitHookParams(repository, self, a_bzrdir, shared)
 
3187
        for hook in hooks:
 
3188
            hook(params)
 
3189
 
3178
3190
 
3179
3191
class MetaDirRepositoryFormat(RepositoryFormat):
3180
3192
    """Common base class for the new repositories using the metadir layout."""