/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/knit.py

  • Committer: John Arbash Meinel
  • Date: 2008-11-21 21:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 3847.
  • Revision ID: john@arbash-meinel.com-20081121212106-erewpn8s9353f411
We don't require all parents to be present, just the compression parent.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1378
1378
                index_entry = (record.key, options, access_memo, parents)
1379
1379
                buffered = False
1380
1380
                if 'fulltext' not in options:
1381
 
                    # Not a fulltext, so we need to make sure the parent
1382
 
                    # versions will also be present.  
 
1381
                    # Not a fulltext, so we need to make sure the compression
 
1382
                    # parent will also be present.
1383
1383
                    # Note that pack backed knits don't need to buffer here
1384
1384
                    # because they buffer all writes to the transaction level,
1385
1385
                    # but we don't expose that difference at the index level. If
1386
1386
                    # the query here has sufficient cost to show up in
1387
1387
                    # profiling we should do that.
1388
 
                    # 
 
1388
                    #
1389
1389
                    # They're required to be physically in this
1390
1390
                    # KnitVersionedFiles, not in a fallback.
1391
 
                    if self.missing_keys(parents):
 
1391
                    compression_parent = parents[0]
 
1392
                    if self.missing_keys([compression_parent]):
1392
1393
                        pending = buffered_index_entries.setdefault(
1393
 
                            parents[0], [])
 
1394
                            compression_parent, [])
1394
1395
                        pending.append(index_entry)
1395
1396
                        buffered = True
1396
1397
                if not buffered: