Code review comment for lp:~rvb/maas/show-version-doc

Revision history for this message
Julian Edwards (julian-edwards) wrote :

On Friday 11 Apr 2014 09:29:20 you wrote:
> +# Gather information about the branch and the build date.
> +from subprocess import check_output
> +bzr_last_revision_number = check_output(['bzr', 'revno'])
> +bzr_last_revision_date = check_output(['bzr', 'version-info',
> '--template={date}','--custom']) +bzr_build_date = check_output(['bzr',
> 'version-info', '--template={build_date}','--custom'])

You know that bzr is written in Python and has an API right? :)

« Back to merge proposal