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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-14 03:16:09 UTC
  • mfrom: (2817.2.2 add_inventory)
  • Revision ID: pqm@pqm.ubuntu.com-20070914031609-ccdhl0ebzrohpa1t
(robertc) Reduce the time to serialise inventories by 20 percent and align the api for knit insertion. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
995
995
        return wt
996
996
 
997
997
    def _serialize(self, inventory, out_file):
998
 
        xml5.serializer_v5.write_inventory(self._inventory, out_file)
 
998
        xml5.serializer_v5.write_inventory(self._inventory, out_file,
 
999
            working=True)
999
1000
 
1000
1001
    def _deserialize(selt, in_file):
1001
1002
        return xml5.serializer_v5.read_inventory(in_file)
2640
2641
        """
2641
2642
        sio = StringIO()
2642
2643
        inv = Inventory()
2643
 
        xml5.serializer_v5.write_inventory(inv, sio)
 
2644
        xml5.serializer_v5.write_inventory(inv, sio, working=True)
2644
2645
        sio.seek(0)
2645
2646
        control_files.put('inventory', sio)
2646
2647