~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2009-09-10 15:46:31 UTC
  • mto: (4634.40.4 2.0.0)
  • mto: This revision was merged to the branch mainline in revision 4705.
  • Revision ID: john@arbash-meinel.com-20090910154631-m89rnpctaohkzfhg
Change 'bzr --version' to always give the major.minor.micro version

Formerly if '.micro' was '.0' it would only print 'major.minor'.
However, now that we are having a 2.0 stable release series, it makes more
sense to start with 2.0.0 and increment from there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    ...
82
82
    ValueError: version_info (1, 4, 0, 'wibble', 0) not valid
83
83
    """
84
 
    if len(version_info) == 2 or version_info[2] == 0:
 
84
    if len(version_info) == 2:
85
85
        main_version = '%d.%d' % version_info[:2]
86
86
    else:
87
87
        main_version = '%d.%d.%d' % version_info[:3]