~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_rio.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 12:19:29 UTC
  • mfrom: (6437.23.11 2.5)
  • mto: (6581.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 6582.
  • Revision ID: jelmer@samba.org-20120220121929-7ni2psvjoatm1yp4
Merge bzr/2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""A generator which creates a rio stanza of the current tree info"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from bzrlib import hooks
20
22
from bzrlib.revision import (
21
23
    NULL_REVISION,
60
62
                info.add('clean', 'False')
61
63
 
62
64
        if self._include_history:
63
 
            self._extract_revision_history()
64
65
            log = Stanza()
65
66
            for (revision_id, message,
66
 
                 timestamp, timezone) in self._revision_history_info:
 
67
                 timestamp, timezone) in self._iter_revision_history():
67
68
                log.add('id', revision_id)
68
69
                log.add('message', message)
69
70
                log.add('date', create_date_str(timestamp, timezone))