~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-17 17:42:03 UTC
  • mfrom: (5035.2.4 nomoreserialiseinv)
  • Revision ID: pqm@pqm.ubuntu.com-20100217174203-bd8elqnhq6w48xb2
(Jelmer) Remove Repository._serialise_inventory_to_{lines,string}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1027
1027
 
1028
1028
        :seealso: add_inventory, for the contract.
1029
1029
        """
1030
 
        inv_lines = self._serialise_inventory_to_lines(inv)
 
1030
        inv_lines = self._serializer.write_inventory_to_lines(inv)
1031
1031
        return self._inventory_add_lines(revision_id, parents,
1032
1032
            inv_lines, check_content=False)
1033
1033
 
2413
2413
                result.revision_id, revision_id))
2414
2414
        return result
2415
2415
 
2416
 
    def _serialise_inventory(self, inv):
2417
 
        return self._serializer.write_inventory_to_string(inv)
2418
 
 
2419
 
    def _serialise_inventory_to_lines(self, inv):
2420
 
        return self._serializer.write_inventory_to_lines(inv)
2421
 
 
2422
2416
    def get_serializer_format(self):
2423
2417
        return self._serializer.format_num
2424
2418