~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_custom.py

  • Committer: Alexander Belchenko
  • Date: 2008-02-16 10:03:17 UTC
  • mfrom: (3224 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3230.
  • Revision ID: bialix@ukr.net-20080216100317-xg1hdw306evlgt94
merge bzr.dev; update for 1.3; $BZR_LOG used in trace.py module (again), not in the main bzr script (req. by Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
    """Create a version file based on a custom template."""
80
80
 
81
81
    def generate(self, to_file):
 
82
        if self._template is None:
 
83
            raise errors.NoTemplate()
 
84
 
82
85
        info = Template()
83
86
        info.add('build_date', create_date_str())
84
87
        info.add('branch_nick', self._branch.nick)