~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Ian Clatworthy
  • Date: 2008-03-27 07:51:10 UTC
  • mto: (3311.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3312.
  • Revision ID: ian.clatworthy@canonical.com-20080327075110-afgd7x03ybju06ez
Reduce evangelism in the User Guide

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):