~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

Change record_delete() to return the delta.

Add direct tests for CB.get_basis_delta(), to ensure that it returns a
valid delta, and that it errors if the client hasn't called will_record_deletes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
277
277
        """
278
278
        if not self._recording_deletes:
279
279
            raise AssertionError("recording deletes not activated.")
280
 
        self._basis_delta.append((path, None, file_id, None))
 
280
        delta = (path, None, file_id, None)
 
281
        self._basis_delta.append(delta)
 
282
        return delta
281
283
 
282
284
    def will_record_deletes(self):
283
285
        """Tell the commit builder that deletes are being notified.