~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Jelmer Vernooij
  • Date: 2009-10-27 21:54:26 UTC
  • mfrom: (4771 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4833.
  • Revision ID: jelmer@samba.org-20091027215426-72164bkd4mq9dsd4
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1117
1117
            iterator is a tuple with:
1118
1118
            index, readv_vector, node_vector. readv_vector is a list ready to
1119
1119
            hand to the transport readv method, and node_vector is a list of
1120
 
            (key, eol_flag, references) for the node retrieved by the
 
1120
            (key, eol_flag, references) for the the node retrieved by the
1121
1121
            matching readv_vector.
1122
1122
        """
1123
1123
        # group by pack so we do one readv per pack
1423
1423
        # resumed packs
1424
1424
        self._resumed_packs = []
1425
1425
 
1426
 
    def __repr__(self):
1427
 
        return '%s(%r)' % (self.__class__.__name__, self.repo)
1428
 
 
1429
1426
    def add_pack_to_memory(self, pack):
1430
1427
        """Make a Pack object available to the repository to satisfy queries.
1431
1428
 
2237
2234
        self._reconcile_fixes_text_parents = True
2238
2235
        self._reconcile_backsup_inventory = False
2239
2236
 
2240
 
    def _warn_if_deprecated(self, branch=None):
 
2237
    def _warn_if_deprecated(self):
2241
2238
        # This class isn't deprecated, but one sub-format is
2242
2239
        if isinstance(self._format, RepositoryFormatKnitPack5RichRootBroken):
2243
 
            super(KnitPackRepository, self)._warn_if_deprecated(branch)
 
2240
            from bzrlib import repository
 
2241
            if repository._deprecation_warning_done:
 
2242
                return
 
2243
            repository._deprecation_warning_done = True
 
2244
            warning("Format %s for %s is deprecated - please use"
 
2245
                    " 'bzr upgrade --1.6.1-rich-root'"
 
2246
                    % (self._format, self.bzrdir.transport.base))
2244
2247
 
2245
2248
    def _abort_write_group(self):
2246
2249
        self.revisions._index._key_dependencies.clear()