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

fix restart when using CHKInventories

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        # Seed the inventory from the previous one
286
286
        if len(self.parents) == 0:
287
287
            self.inventory = self.basis_inventory
 
288
        elif hasattr(self.basis_inventory, "_get_mutable_inventory"):
 
289
            # TODO: Make this a public API on inventory
 
290
            self.inventory = self.basis_inventory._get_mutable_inventory()
288
291
        else:
289
292
            # TODO: Shallow copy - deep inventory copying is expensive
290
293
            self.inventory = self.basis_inventory.copy()