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

Type BazaarCommandVersion

object --+
         |
        BazaarCommandVersion


Parsing and comparison of Bazaar version strings.

Method Summary
  __init__(self, version_line)
Parse a Bazaar version string.
  __cmp__(self, rhs)
  __repr__(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

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

Instance 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:
__builtin__.object.__init__

Property Details

cotm

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

release

Tuple of integers representing the Bazaar release version.

string

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

Generated by Epydoc 2.1 on Thu Feb 2 14:21:53 2006 http://epydoc.sf.net