~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_python.py

  • Committer: Patch Queue Manager
  • Date: 2015-12-17 18:39:00 UTC
  • mfrom: (6606.1.2 fix-float)
  • Revision ID: pqm@pqm.ubuntu.com-20151217183900-0719du2uv1kwu3lc
(vila) Inline testtools private method to fix an issue in xenial (the
 private implementation has changed in an backward incompatible way).
 (Jelmer Vernooij)

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