~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Martin Pool
  • Date: 2005-06-11 01:50:54 UTC
  • Revision ID: mbp@sourcefrog.net-20050611015054-511b421ed405b9a0
- cope when writing out revisions with no timezone recorded
  fix from John A Meinel

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                       revision_id = self.revision_id,
61
61
                       inventory_id = self.inventory_id,
62
62
                       inventory_sha1 = self.inventory_sha1,
63
 
                       timezone = str(self.timezone))
 
63
                       )
 
64
        if self.timezone:
 
65
            root.set('timezone', str(self.timezone))
64
66
        if self.precursor:
65
67
            root.set('precursor', self.precursor)
66
68
            if self.precursor_sha1: