~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

Tune working inventory generation more: walk the blocks, skipping deleted rows.

Show diffs side-by-side

added added

removed removed

Lines of Context:
321
321
        :param tree: The tree which should provide parent information and
322
322
            inventory ids.
323
323
        """
 
324
        tree.lock_read()
324
325
        # XXX: aka the big ugly.
325
326
        result = DirState()
326
327
        result._state_file = open(dir_state_filename, 'wb+')
406
407
        #lines.append(result._get_ghosts_line([]))
407
408
        result._set_data(parent_ids, root_row, dirblocks)
408
409
        result.save()
 
410
        tree.unlock()
409
411
        return result
410
412
 
411
413
    def get_ghosts(self):