~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2010-01-31 12:10:40 UTC
  • mto: This revision was merged to the branch mainline in revision 4993.
  • Revision ID: jelmer@samba.org-20100131121040-64t9ykvo2oz4pknx
rename Repository.deserialise_inventory to Repository._deserialise_inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1240
1240
        """Check a single text from this repository."""
1241
1241
        if kind == 'inventories':
1242
1242
            rev_id = record.key[0]
1243
 
            inv = self.deserialise_inventory(rev_id,
 
1243
            inv = self._deserialise_inventory(rev_id,
1244
1244
                record.get_bytes_as('fulltext'))
1245
1245
            if last_object is not None:
1246
1246
                delta = inv._make_delta(last_object)
2388
2388
        """single-document based inventory iteration."""
2389
2389
        inv_xmls = self._iter_inventory_xmls(revision_ids, ordering)
2390
2390
        for text, revision_id in inv_xmls:
2391
 
            yield self.deserialise_inventory(revision_id, text)
 
2391
            yield self._deserialise_inventory(revision_id, text)
2392
2392
 
2393
2393
    def _iter_inventory_xmls(self, revision_ids, ordering):
2394
2394
        if ordering is None:
2426
2426
                        next_key = None
2427
2427
                        break
2428
2428
 
2429
 
    def deserialise_inventory(self, revision_id, xml):
 
2429
    def _deserialise_inventory(self, revision_id, xml):
2430
2430
        """Transform the xml into an inventory object.
2431
2431
 
2432
2432
        :param revision_id: The expected revision id of the inventory.