~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

  • Committer: John Arbash Meinel
  • Date: 2006-10-11 00:23:23 UTC
  • mfrom: (2070 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2071.
  • Revision ID: john@arbash-meinel.com-20061011002323-82ba88c293d7caff
[merge] bzr.dev 2070

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    def is_executable(self, file_id, path=None):
100
100
        return self._inventory[file_id].executable
101
101
 
102
 
    def kind(self, file_id):
103
 
        return self._inventory[file_id].kind
104
 
 
105
102
    def mkdir(self, path, file_id=None):
106
103
        """See MutableTree.mkdir()."""
107
104
        self.add(path, file_id, 'directory')
170
167
        self._file_transport = MemoryTransport()
171
168
        # TODO copy the revision trees content, or do it lazy, or something.
172
169
        inventory_entries = self._inventory.iter_entries()
 
170
        inventory_entries.next()
173
171
        for path, entry in inventory_entries:
174
 
            if path == '':
175
 
                continue
176
172
            if entry.kind == 'directory':
177
173
                self._file_transport.mkdir(path)
178
174
            elif entry.kind == 'file':