~tcole/bzr/fix-key-selection

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-08-09 21:50:57 UTC
  • mfrom: (3616.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20080809215057-4tnxs63ngab9gm8a
(Jelmer) Fix copying of root revision in inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
850
850
        if self.root is None:
851
851
            return Inventory(root_id=None)
852
852
        other = Inventory(entries.next()[1].file_id)
 
853
        other.root.revision = self.root.revision
853
854
        # copy recursively so we know directories will be added before
854
855
        # their children.  There are more efficient ways than this...
855
856
        for path, entry in entries: