~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2007-10-12 08:00:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2913.
  • Revision ID: mbp@sourcefrog.net-20071012080007-vf80woayyom8s8e1
Rename update_to_one_parent_via_delta to more wieldy update_basis_by_delta

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
 
        if indent < 1:
150
 
            raise ValueError('indentation must be greater than 0')
 
149
        assert indent > 0, 'indentation must be greater than 0'
151
150
        f = self.to_file
152
151
        f.write('#' + (' ' * indent))
153
152
        f.write(key.encode('utf-8'))
524
523
            action, lines, do_continue = self._read_one_patch()
525
524
            if action is not None:
526
525
                revision_actions.append((action, lines))
527
 
        if self.info.revisions[-1].tree_actions is not None:
528
 
            raise AssertionError()
 
526
        assert self.info.revisions[-1].tree_actions is None
529
527
        self.info.revisions[-1].tree_actions = revision_actions
530
528
 
531
529
    def _read_footer(self):