~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to command.py

  • Committer: Max Bowsher
  • Date: 2009-11-07 16:59:01 UTC
  • mto: (733.2.1 fix-version-check)
  • mto: This revision was merged to the branch mainline in revision 734.
  • Revision ID: maxb@f2s.com-20091107165901-00i9ajka4oxf3wzo
Use bzrtools' preformatted version string, rather than erroneously assuming version_info is always a 3-tuple.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import bzrlib
2
2
from bzrlib import commands
3
3
 
4
 
from version import *
 
4
from version import version_info, __version__
5
5
 
6
6
 
7
7
class BzrToolsCommand(commands.Command):
35
35
        warning('Installed Bazaar version %s is too old to be used with'
36
36
                ' plugin \n'
37
37
                '"Bzrtools" %s.' % (
38
 
                bzrlib.__version__, '%s.%s.%s' % version_info))
 
38
                bzrlib.__version__, __version__))
39
39
        # Not using BzrNewError, because it may not exist.
40
40
        return 3
41
41
    else: