[Pkg-bazaar-commits] ./bzr-gtk/unstable r425: Merge from dev
Aaron Bentley
aaron at aaronbentley.com
Fri Apr 10 07:50:16 UTC 2009
------------------------------------------------------------
revno: 425
committer: Aaron Bentley <aaron at aaronbentley.com>
branch nick: bzr-gtk-meld
timestamp: Sun 2008-01-13 23:21:45 -0500
message:
Merge from dev
modified:
NEWS
__init__.py
------------------------------------------------------------
revno: 423.1.1
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: noversioncheck
timestamp: Tue 2008-01-08 20:39:39 +0100
message:
Allow bzr-gtk and Bazaar versions to be out of sync. No longer warn about
newer versions of Bazaar, on the assumption the API is sufficiently stable now.
modified:
NEWS
__init__.py
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2007-12-20 23:43:57 +0000
+++ b/NEWS 2008-01-08 19:39:39 +0000
@@ -9,6 +9,12 @@
* Make viz not throw errors when there are 0 commits. (#173698, Gary van der
Merwe)
+ FEATURES
+
+ * Only check for old Bazaar versions that are known to be incompatible and
+ no longer warn about newer (unknown) versions of Bazaar, on the assumption
+ the API is sufficiently stable now. (Jelmer Vernooij)
+
INTERNALS
* Refactored the revisionview. (Daniel Schierbeck)
=== modified file '__init__.py'
--- a/__init__.py 2008-01-14 04:20:46 +0000
+++ b/__init__.py 2008-01-14 04:21:45 +0000
@@ -44,19 +44,14 @@
version_string = '%d.%d.%d%s%d' % version_info
__version__ = version_string
+required_bzrlib = (1, 0)
+
def check_bzrlib_version(desired):
"""Check that bzrlib is compatible.
If version is < bzr-gtk version, assume incompatible.
- If version == bzr-gtk version, assume completely compatible
- If version == bzr-gtk version + 1, assume compatible, with deprecations
- Otherwise, assume incompatible.
"""
- desired_plus = (desired[0], desired[1]+1)
bzrlib_version = bzrlib.version_info[:2]
- if bzrlib_version == desired or (bzrlib_version == desired_plus and
- bzrlib.version_info[3] == 'dev'):
- return
try:
from bzrlib.trace import warning
except ImportError:
@@ -67,14 +62,10 @@
warning('Installed Bazaar version %s is too old to be used with bzr-gtk'
' %s.' % (bzrlib.__version__, __version__))
raise BzrError('Version mismatch: %r, %r' % (version_info, bzrlib.version_info) )
- else:
- warning('bzr-gtk is not up to date with installed bzr version %s.'
- ' \nThere should be a newer version available, e.g. %i.%i.'
- % (bzrlib.__version__, bzrlib_version[0], bzrlib_version[1]))
if version_info[2] == "final":
- check_bzrlib_version(version_info[:2])
+ check_bzrlib_version(required_bzrlib)
from bzrlib.trace import warning
if __name__ != 'bzrlib.plugins.gtk':
More information about the Pkg-bazaar-commits
mailing list