/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2008-05-27 03:00:53 UTC
  • mfrom: (3452 +trunk)
  • mto: (3724.1.1 lock-hooks)
  • mto: This revision was merged to the branch mainline in revision 3730.
  • Revision ID: mbp@sourcefrog.net-20080527030053-0mct6dypek0ysjc3
merge trunk

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