~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-01 21:21:53 UTC
  • mto: This revision was merged to the branch mainline in revision 4672.
  • Revision ID: john@arbash-meinel.com-20090901212153-lpuduugn7xvpvanl
An alternative implementation that passes both tests.
Basically, instead of always rebuilding all blocks, just mark blocks
that have a single record as needing to be repacked.
This isn't a great solution, but it is one-step inbetween always rebuild
and never rebuild.

Show diffs side-by-side

added added

removed removed

Lines of Context:
696
696
        target = self.make_repository('target', format='2a')
697
697
        target.fetch(source.repository)
698
698
        target.lock_read()
 
699
        self.addCleanup(target.unlock)
699
700
        details = target.texts._index.get_build_details(
700
701
            [('file-id', '1',), ('file-id', '2',)])
701
702
        file_1_details = details[('file-id', '1')]