~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: John Arbash Meinel
  • Date: 2008-07-22 18:12:25 UTC
  • mto: (3514.4.6 merge_lca_multi)
  • mto: This revision was merged to the branch mainline in revision 3590.
  • Revision ID: john@arbash-meinel.com-20080722181225-nx1dwfmb4wky600x
Revert back to using MemoryTree.mkdir() rather than creating the directory during add().

This complicates the api a bit, because we have to use multiple passes,
but at least we don't change any tested behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                self._inventory.add_path(f, kind=kind)
60
60
            else:
61
61
                self._inventory.add_path(f, kind=kind, file_id=file_id)
62
 
            if kind == 'directory' and f != '':
63
 
                self._file_transport.mkdir(f)
64
62
 
65
63
    def basis_tree(self):
66
64
        """See Tree.basis_tree()."""