Package pybaz :: Module compat :: Class BazaarCommandVersion
[frames] | no frames]

Class BazaarCommandVersion

source code

object --+
         |
        BazaarCommandVersion

Parsing and comparison of Bazaar version strings.



Instance Methods
 
__init__(self, version_line)
Parse a Bazaar version string.
 
__repr__(self)
repr(x)
 
__cmp__(self, rhs)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties
  string
Unparsed version string, without the "baz Bazaar version" prefix.
  release
Tuple of integers representing the Bazaar release version.
  cotm
Long integer identifying the Crack Of The Minute build.

Inherited from object: __class__

Method Details

__init__(self, version_line)
(Constructor)

 
Parse a Bazaar version string.

:param version_line: line of the form
    ``'baz Bazaar version MAJOR.MINOR[.POINT][[-]~COTM]'``
:type version_line: str

Overrides: object.__init__

__repr__(self)
(Representation operator)

 
repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details

string


Unparsed version string, without the "baz Bazaar version" prefix.
Use this attribute in user-visible messages.

Get Method:
pybaz.compat.BazaarCommandVersion._get_string(self)

release


Tuple of integers representing the Bazaar release version.

Get Method:
pybaz.compat.BazaarCommandVersion._get_release(self)

cotm


Long integer identifying the Crack Of The Minute build.
None if the version is a release.

Get Method:
pybaz.compat.BazaarCommandVersion._get_cotm(self)