Merge lp:~garyvdm/bzr-search/svn_incompatable into lp:bzr-search

Proposed by Gary van der Merwe
Status: Merged
Approved by: Robert Collins
Approved revision: 78
Merged at revision: 78
Proposed branch: lp:~garyvdm/bzr-search/svn_incompatable
Merge into: lp:bzr-search
Diff against target: 26 lines (+7/-2)
1 file modified
index.py (+7/-2)
To merge this branch: bzr merge lp:~garyvdm/bzr-search/svn_incompatable
Reviewer Review Type Date Requested Status
Robert Collins (community) Approve
Review via email: mp+22127@code.launchpad.net

Description of the change

This make bzr-search check for an IncompatibleAPI error when importing bzr-svn so that bzr-search does not break when bzr-svn is incompatible with bzrlib.

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

 review: +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'index.py'
2--- index.py 2009-11-03 00:12:13 +0000
3+++ index.py 2010-03-25 13:24:20 +0000
4@@ -27,7 +27,12 @@
5 from bzrlib.btree_index import BTreeGraphIndex, BTreeBuilder
6 from bzrlib.bzrdir import BzrDirMeta1
7 import bzrlib.config
8-from bzrlib.errors import NotBranchError, NoSuchFile, UnknownFormatError
9+from bzrlib.errors import (
10+ NotBranchError,
11+ NoSuchFile,
12+ UnknownFormatError,
13+ IncompatibleAPI,
14+)
15 from bzrlib.index import CombinedGraphIndex, GraphIndex, InMemoryGraphIndex
16 from bzrlib.lockdir import LockDir
17 try:
18@@ -190,7 +195,7 @@
19 """
20 try:
21 from bzrlib.plugins.svn.branch import SvnBranch
22- except ImportError:
23+ except (ImportError, IncompatibleAPI):
24 SvnBranch = None
25 if type(branch) == SvnBranch:
26 # We can't write to the 'bzrdir' as it is virtual

Subscribers

People subscribed via source and target branches

to all changes: