~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/pack_repo.py

  • Committer: Andrew Bennetts
  • Date: 2009-08-31 01:06:12 UTC
  • mto: (4634.6.23 2.0)
  • mto: This revision was merged to the branch mainline in revision 4676.
  • Revision ID: andrew.bennetts@canonical.com-20090831010612-n0v1w0b7emynrllv
Simplify further.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2080
2080
            rev_ids = [key[-1] for key in new_inventories_keys]
2081
2081
            for new_inv in self.repo.iter_inventories(rev_ids, 'unordered'):
2082
2082
                root_keys = set([new_inv.id_to_entry.key()])
2083
 
                if getattr(new_inv, 'parent_id_basename_to_file_id', None) is not None:
 
2083
                if new_inv.parent_id_basename_to_file_id is not None:
2084
2084
                    root_keys.add(
2085
2085
                        new_inv.parent_id_basename_to_file_id.key())
2086
2086
                present = self.repo.chk_bytes.get_parent_map(root_keys)