~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

format deprecation supported via suppress_warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
2234
2234
        self._reconcile_fixes_text_parents = True
2235
2235
        self._reconcile_backsup_inventory = False
2236
2236
 
2237
 
    def _warn_if_deprecated(self):
 
2237
    def _warn_if_deprecated(self, branch=None):
2238
2238
        # This class isn't deprecated, but one sub-format is
2239
2239
        if isinstance(self._format, RepositoryFormatKnitPack5RichRootBroken):
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))
 
2240
            super(KnitPackRepository, self)._warn_if_deprecated(branch)
2247
2241
 
2248
2242
    def _abort_write_group(self):
2249
2243
        self.revisions._index._key_dependencies.clear()