/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2007-05-19 16:21:10 UTC
  • mfrom: (195.1.7 trunk)
  • Revision ID: jelmer@samba.org-20070519162110-qw0pkevul1iet036
MergeĀ upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import bzrlib
18
18
 
19
 
__version__ = '0.16.0'
 
19
__version__ = '0.17.0'
20
20
version_info = tuple(int(n) for n in __version__.split('.'))
21
21
 
22
22
 
40
40
    if bzrlib_version < desired:
41
41
        warning('Installed bzr version %s is too old to be used with bzr-gtk'
42
42
                ' %s.' % (bzrlib.__version__, __version__))
43
 
        # Not using BzrNewError, because it may not exist.
44
 
        raise Exception, ('Version mismatch', version_info)
 
43
        raise BzrError('Version mismatch: %r' % version_info)
45
44
    else:
46
45
        warning('bzr-gtk is not up to date with installed bzr version %s.'
47
46
                ' \nThere should be a newer version available, e.g. %i.%i.' 
323
322
        try:
324
323
            (wt, path) = workingtree.WorkingTree.open_containing(filename)
325
324
            br = wt.branch
326
 
        except NotBranchError, e:
327
 
            path = e.path
328
325
        except NoWorkingTree, e:
329
326
            path = e.base
330
 
            try:
331
 
                (br, path) = branch.Branch.open_containing(path)
332
 
            except NotBranchError, e:
333
 
                path = e.path
 
327
            (br, path) = branch.Branch.open_containing(path)
334
328
 
335
329
        commit = CommitDialog(wt, path, not br)
336
330
        commit.run()