~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/knitrepo.py

  • Committer: Robert Collins
  • Date: 2007-09-13 22:41:38 UTC
  • mto: (2592.3.139 repository)
  • mto: This revision was merged to the branch mainline in revision 2821.
  • Revision ID: robertc@robertcollins.net-20070913224138-bjsgijrwe0a2kj4p
* Inventory serialisation no longer double-sha's the content.
  (Robert Collins)

* XML inventory serialisation takes 20% less time while being stricter about
  the contents. (Robert Collins)

* Tree's with bad state such as files with no length or sha will no longer
  be silently accepted by the repository XML serialiser. To serialise
  inventories without such data, pass working=True to write_inventory.
  (Robert Collins)

* New method on xml serialisers, write_inventory_to_lines, which matches the
  API used by knits for adding content. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        pass
76
76
 
77
77
    def _inventory_add_lines(self, inv_vf, revid, parents, lines, check_content):
78
 
        inv_vf.add_lines_with_ghosts(revid, parents, lines,
79
 
            check_content=check_content)
 
78
        return inv_vf.add_lines_with_ghosts(revid, parents, lines,
 
79
            check_content=check_content)[0]
80
80
 
81
81
    @needs_read_lock
82
82
    def _all_revision_ids(self):