~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_rio.py

  • Committer: Tarmac
  • Author(s): Vincent Ladeuil
  • Date: 2017-01-30 14:42:05 UTC
  • mfrom: (6620.1.1 trunk)
  • Revision ID: tarmac-20170130144205-r8fh2xpmiuxyozpv
Merge  2.7 into trunk including fix for bug #1657238 [r=vila]

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