~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
    @needs_read_lock
123
123
    def last_revision(self):
124
 
        """Return the last revision id of this working tree."""
 
124
        """Return the revision id of the last commit performed in this tree.
 
125
 
 
126
        In early tree formats the result of last_revision is the same as the
 
127
        branch last_revision, but that is no longer the case for modern tree
 
128
        formats.
 
129
        
 
130
        last_revision returns the left most parent id, or None if there are no
 
131
        parents.
 
132
 
 
133
        last_revision was deprecated as of 0.11. Please use get_parent_ids
 
134
        instead.
 
135
        """
125
136
        raise NotImplementedError(self.last_revision)
126
137
 
127
138
    def lock_write(self):