~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version_info_formats/__init__.py

(gz) Fix test failure on alpha by correcting format string for
 gc_chk_sha1_record (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
            return self._working_tree.last_revision()
160
160
        return self._branch.last_revision()
161
161
 
162
 
    def _get_revno_str(self, revision_id):
163
 
        numbers = self._branch.revision_id_to_dotted_revno(revision_id)
164
 
        revno_str = '.'.join([str(num) for num in numbers])
165
 
        return revno_str
166
 
 
167
162
    def generate(self, to_file):
168
163
        """Output the version information to the supplied file.
169
164