/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/xml5.py

  • Committer: Aaron Bentley
  • Date: 2008-03-28 02:10:23 UTC
  • mto: This revision was merged to the branch mainline in revision 3371.
  • Revision ID: aaron@aaronbentley.com-20080328021023-dc439qj3v30ri5re
Implement version numbers for format 8

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
                       timestamp = '%.3f' % rev.timestamp,
303
303
                       revision_id = revision_id,
304
304
                       inventory_sha1 = rev.inventory_sha1,
305
 
                       format='5',
 
305
                       format=self.format_num,
306
306
                       )
307
307
        if rev.timezone is not None:
308
308
            root.set('timezone', str(rev.timezone))
405
405
        assert elt.tag == 'revision'
406
406
        format = elt.get('format')
407
407
        if format is not None:
408
 
            if format != '5':
 
408
            if format != self.format_num:
409
409
                raise BzrError("invalid format version %r on inventory"
410
410
                                % format)
411
411
        get_cached = _get_utf8_or_ascii