~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/format_custom.py

Merge bzr.dev, update to use new hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        if revision_id == NULL_REVISION:
94
94
            info.add('revno', 0)
95
95
        else:
96
 
            info.add('revno', self._branch.revision_id_to_revno(revision_id))
 
96
            info.add('revno', self._get_revno_str(revision_id))
97
97
            info.add('revision_id', revision_id)
98
98
            rev = self._branch.repository.get_revision(revision_id)
99
99
            info.add('date', create_date_str(rev.timestamp, rev.timezone))