~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2006-12-12 22:40:01 UTC
  • mto: This revision was merged to the branch mainline in revision 2180.
  • Revision ID: jelmer@samba.org-20061212224001-3ljlrqvd0k3zc675
Make add_path() return inventory entry for root just like it does for other entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1089
1089
                file_id = generate_ids.gen_root_id()
1090
1090
            self.root = InventoryDirectory(file_id, '', None)
1091
1091
            self._byid = {self.root.file_id: self.root}
1092
 
            return
 
1092
            return self.root
1093
1093
        else:
1094
1094
            parent_path = parts[:-1]
1095
1095
            parent_id = self.path2id(parent_path)