~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/add.py

  • Committer: Robert Collins
  • Date: 2006-06-13 12:54:39 UTC
  • mto: (1767.2.2 integration)
  • mto: This revision was merged to the branch mainline in revision 1769.
  • Revision ID: robertc@robertcollins.net-20060613125439-5cbc77171d03a1a8
Review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
        # generally find it very fast and not recurse after that.
306
306
        added = __add_one_and_parent(tree, inv, None, FastPath(dirname(path.raw_path)), 'directory', action)
307
307
        parent_id = inv.path2id(dirname(path.raw_path))
308
 
        if parent_id is None:
309
 
            parent_ie = inv[inv.path2id(dirname(path.raw_path))]
310
 
        else:
311
 
            parent_ie = inv[parent_id]
 
308
        parent_ie = inv[parent_id]
312
309
    __add_one(tree, inv, parent_ie, path, kind, action)
313
310
    return added + [path.raw_path]
314
311