~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 17:59:57 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-20080722175957-9gz0my3cvanggos8
MemoryTree.add(directory) will now create a directory node in the Transport

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)
62
64
 
63
65
    def basis_tree(self):
64
66
        """See Tree.basis_tree()."""