~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/v08.py

Merge up bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
            If this parameter is True, and value is the empty string, we will
147
147
            write an extra space.
148
148
        """
149
 
        assert indent > 0, 'indentation must be greater than 0'
 
149
        if indent < 1:
 
150
            raise ValueError('indentation must be greater than 0')
150
151
        f = self.to_file
151
152
        f.write('#' + (' ' * indent))
152
153
        f.write(key.encode('utf-8'))
523
524
            action, lines, do_continue = self._read_one_patch()
524
525
            if action is not None:
525
526
                revision_actions.append((action, lines))
526
 
        assert self.info.revisions[-1].tree_actions is None
 
527
        if self.info.revisions[-1].tree_actions is not None:
 
528
            raise AssertionError()
527
529
        self.info.revisions[-1].tree_actions = revision_actions
528
530
 
529
531
    def _read_footer(self):