/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: Canonical.com Patch Queue Manager
  • Date: 2006-08-16 14:24:51 UTC
  • mfrom: (1913.1.6 timezone-utc-55783)
  • Revision ID: pqm@pqm.ubuntu.com-20060816142451-0c165573fe342dd5
(jam) fix bugs #56290, #55783: handle TZ=UTC correctly

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                       inventory_sha1 = rev.inventory_sha1,
87
87
                       format='5',
88
88
                       )
89
 
        if rev.timezone:
 
89
        if rev.timezone is not None:
90
90
            root.set('timezone', str(rev.timezone))
91
91
        root.text = '\n'
92
92
        msg = SubElement(root, 'message')
201
201
            rev.parent_ids.append(get_cached(p.get('revision_id')))
202
202
        self._unpack_revision_properties(elt, rev)
203
203
        v = elt.get('timezone')
204
 
        rev.timezone = v and int(v)
 
204
        if v is None:
 
205
            rev.timezone = 0
 
206
        else:
 
207
            rev.timezone = int(v)
205
208
        rev.message = elt.findtext('message') # text of <message>
206
209
        return rev
207
210