~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-17 03:20:35 UTC
  • mfrom: (4792.4.3 456036)
  • Revision ID: pqm@pqm.ubuntu.com-20091117032035-s3sgtlixj1lrminn
(Gordon Tyler) Fix IndexError during 'bzr ignore /' (#456036)

Show diffs side-by-side

added added

removed removed

Lines of Context:
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()