diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2011-08-04 17:50:32 +0200 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2011-09-07 22:02:37 -0400 |
commit | a37004c5e4b80a775cbb43e2f25b3376ae1673c0 (patch) | |
tree | c8cbf80dbffc4700772c7001716b063bf533a378 /libbe/bugdir.py | |
parent | 4889440b63b62e99366bb119fc63e2d960e51883 (diff) | |
download | bugseverywhere-a37004c5e4b80a775cbb43e2f25b3376ae1673c0.tar.gz |
Enhance Bzr.version_cmp to handle non-numeric versions
bzr uses non-numeric tags to indicate prereleases; previously, this
triggers an exception in be's Bzr module as version comparison is only
supported between version strings that only contain numbers and dots.
This patch extends version_cmp to support a single non-numeric
pre-release string of arbitrary length (e.g. 'a', 'b', 'pre', 'rc'), and
extends the docstring tests to cover this extension.
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
Diffstat (limited to 'libbe/bugdir.py')
0 files changed, 0 insertions, 0 deletions