~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_python.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 python script from the current tree info"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
import pprint
20
22
 
21
23
from bzrlib.revision import (
83
85
        to_file.write('\n\n')
84
86
 
85
87
        if self._include_history:
86
 
            self._extract_revision_history()
87
 
            revision_str = pprint.pformat(self._revision_history_info)
 
88
            history = list(self._iter_revision_history())
 
89
            revision_str = pprint.pformat(history)
88
90
            to_file.write('revisions = ')
89
91
            to_file.write(revision_str)
90
92
            to_file.write('\n\n')