For instance, with bzr 1.12dev (bzr.dev revno:3951), a plugin that requires API version 1.10 produces this backtrace with '-Derror':
cdb@gamma ~/code/bzr/work/bzrlib $ bzr st -Derror
bzr: ERROR: bzrlib.errors.IncompatibleAPI: The API for "<module 'bzrlib' from '/home/cdb/bin/bzr.dev/bzrlib/__init__.pyc'>" is not compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1, 12, 0)".
Traceback (most recent call last):
File "/home/cdb/bin/bzr.dev/bzrlib/commands.py", line 893, in run_bzr_catch_errors
return run_bzr(argv)
File "/home/cdb/bin/bzr.dev/bzrlib/commands.py", line 839, in run_bzr
ret = run(*run_argv)
File "/home/cdb/.bazaar/plugins/loom/commands.py", line 172, in run_argv_aliases
self._original_command().run_argv_aliases(argv, alias_argv)
File "/home/cdb/bin/bzr.dev/bzrlib/commands.py", line 539, in run_argv_aliases
return self.run(**all_cmd_args)
File "/home/cdb/bin/bzr.dev/bzrlib/commands.py", line 853, in ignore_pipe
result = func(*args, **kwargs)
File "/home/cdb/bin/bzr.dev/bzrlib/builtins.py", line 215, in run
tree, relfile_list = tree_files(file_list)
File "/home/cdb/bin/bzr.dev/bzrlib/builtins.py", line 64, in tree_files
return internal_tree_files(file_list, default_branch, canonicalize)
File "/home/cdb/bin/bzr.dev/bzrlib/builtins.py", line 105, in internal_tree_files
return WorkingTree.open_containing(default_branch)[0], file_list
File "/home/cdb/bin/bzr.dev/bzrlib/workingtree.py", line 331, in open_containing
control, relpath = bzrdir.BzrDir.open_containing(path)
File "/home/cdb/bin/bzr.dev/bzrlib/bzrdir.py", line 844, in open_containing
return BzrDir.open_containing_from_transport(transport)
File "/home/cdb/bin/bzr.dev/bzrlib/bzrdir.py", line 865, in open_containing_from_transport
result = BzrDir.open_from_transport(a_transport)
File "/home/cdb/bin/bzr.dev/bzrlib/bzrdir.py", line 819, in open_from_transport
redirected)
File "/home/cdb/bin/bzr.dev/bzrlib/lazy_import.py", line 125, in __call__
return obj(*args, **kwargs)
File "/home/cdb/bin/bzr.dev/bzrlib/transport/__init__.py", line 1680, in do_catching_redirections
return action(transport)
File "/home/cdb/bin/bzr.dev/bzrlib/bzrdir.py", line 806, in find_format
transport, _server_formats=_server_formats)
File "/home/cdb/bin/bzr.dev/bzrlib/bzrdir.py", line 1645, in find_format
return format.probe_transport(transport)
File "/home/cdb/.bazaar/plugins/svn/format.py", line 71, in probe_transport
format = klass()
File "/home/cdb/.bazaar/plugins/svn/format.py", line 61, in __init__
lazy_check_versions()
File "/home/cdb/.bazaar/plugins/svn/__init__.py", line 137, in lazy_check_versions
bzrlib.api.require_any_api(bzrlib, COMPATIBLE_BZR_VERSIONS)
File "/home/cdb/bin/bzr.dev/bzrlib/api.py", line 104, in require_any_api
require_api(object_with_api, wanted_api_list[-1])
File "/home/cdb/bin/bzr.dev/bzrlib/api.py", line 82, in require_api
raise IncompatibleAPI(object_with_api, wanted_api, minimum, current)
IncompatibleAPI: The API for "<module 'bzrlib' from '/home/cdb/bin/bzr.dev/bzrlib/__init__.pyc'>" is not compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1, 12, 0)".
For instance, with bzr 1.12dev (bzr.dev revno:3951), a plugin that requires API version 1.10 produces this backtrace with '-Derror':
cdb@gamma ~/code/ bzr/work/ bzrlib $ bzr st -Derror errors. IncompatibleAPI : The API for "<module 'bzrlib' from '/home/ cdb/bin/ bzr.dev/ bzrlib/ __init_ _.pyc'> " is not compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1, 12, 0)".
bzr: ERROR: bzrlib.
Traceback (most recent call last): cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 893, in run_bzr_ catch_errors cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 839, in run_bzr cdb/.bazaar/ plugins/ loom/commands. py", line 172, in run_argv_aliases _original_ command( ).run_argv_ aliases( argv, alias_argv) cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 539, in run_argv_aliases **all_cmd_ args) cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 853, in ignore_pipe cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 215, in run file_list) cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 64, in tree_files tree_files( file_list, default_branch, canonicalize) cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 105, in internal_tree_files open_containing (default_ branch) [0], file_list cdb/bin/ bzr.dev/ bzrlib/ workingtree. py", line 331, in open_containing BzrDir. open_containing (path) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 844, in open_containing open_containing _from_transport (transport) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 865, in open_containing _from_transport open_from_ transport( a_transport) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 819, in open_from_transport cdb/bin/ bzr.dev/ bzrlib/ lazy_import. py", line 125, in __call__ cdb/bin/ bzr.dev/ bzrlib/ transport/ __init_ _.py", line 1680, in do_catching_ redirections cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 806, in find_format formats= _server_ formats) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 1645, in find_format probe_transport (transport) cdb/.bazaar/ plugins/ svn/format. py", line 71, in probe_transport cdb/.bazaar/ plugins/ svn/format. py", line 61, in __init__ check_versions( ) cdb/.bazaar/ plugins/ svn/__init_ _.py", line 137, in lazy_check_versions api.require_ any_api( bzrlib, COMPATIBLE_ BZR_VERSIONS) cdb/bin/ bzr.dev/ bzrlib/ api.py" , line 104, in require_any_api api(object_ with_api, wanted_ api_list[ -1]) cdb/bin/ bzr.dev/ bzrlib/ api.py" , line 82, in require_api (object_ with_api, wanted_api, minimum, current) cdb/bin/ bzr.dev/ bzrlib/ __init_ _.pyc'> " is not compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1, 12, 0)".
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
self.
File "/home/
return self.run(
File "/home/
result = func(*args, **kwargs)
File "/home/
tree, relfile_list = tree_files(
File "/home/
return internal_
File "/home/
return WorkingTree.
File "/home/
control, relpath = bzrdir.
File "/home/
return BzrDir.
File "/home/
result = BzrDir.
File "/home/
redirected)
File "/home/
return obj(*args, **kwargs)
File "/home/
return action(transport)
File "/home/
transport, _server_
File "/home/
return format.
File "/home/
format = klass()
File "/home/
lazy_
File "/home/
bzrlib.
File "/home/
require_
File "/home/
raise IncompatibleAPI
IncompatibleAPI: The API for "<module 'bzrlib' from '/home/