~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2008-08-09 00:45:30 UTC
  • mto: (3606.2.2 1.6)
  • mto: This revision was merged to the branch mainline in revision 3617.
  • Revision ID: jelmer@samba.org-20080809004530-v2g6mrvl4bc1tae1
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: