~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

Add a new method ``Tree.revision_tree`` which allows access to cached
trees for arbitrary revisions. This allows the in development dirstate
tree format to provide access to the callers to cached copies of 
inventory data which are cheaper to access than inventories from the
repository. (Robert Collins, Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
207
207
            # because we don't want to write to a temporary file and rename
208
208
            # into place, because that's going to happen to the whole
209
209
            # directory
210
 
            self.transport.append(tmpname + self.__INFO_NAME, sio)
 
210
            self.transport.append_file(tmpname + self.__INFO_NAME, sio)
211
211
 
212
212
            self.transport.rename(tmpname, self._held_dir)
213
213
            self._lock_held = True