~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/memorytree.py

Add MemoryTree.last_revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        self._file_transport.mkdir(path)
107
107
        return file_id
108
108
 
 
109
    @needs_read_lock
 
110
    def last_revision(self):
 
111
        """See MutableTree.last_revision."""
 
112
        return self._branch_revision_id
 
113
 
109
114
    def lock_read(self):
110
115
        """Lock the memory tree for reading.
111
116
 
212
217
                self._basis_tree = self.branch.repository.revisiontree(None)
213
218
            else:
214
219
                self._basis_tree = parents_list[0][1]
 
220
            self._branch_revision_id = parents_list[0][0]