Rev 2236: Fix test failures. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Mon Dec 8 14:35:51 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2236
revision-id: jelmer at samba.org-20081208143548-f3rqv15yjusdn69q
parent: jelmer at samba.org-20081208142212-92miujaaouhh4jaa
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Mon 2008-12-08 15:35:48 +0100
message:
Fix test failures.
modified:
format.py format.py-20070917005147-94kb7zysotf82kqw-1
=== modified file 'format.py'
--- a/format.py 2008-12-08 14:22:12 +0000
+++ b/format.py 2008-12-08 14:35:48 +0000
@@ -65,6 +65,7 @@
@classmethod
def probe_transport(klass, transport):
from bzrlib.plugins.svn.transport import get_svn_ra_transport
+ from bzrlib.plugins.svn.errors import DavRequestFailed
from bzrlib.transport.local import LocalTransport
import subvertpy
format = klass()
@@ -82,7 +83,12 @@
transport, msg)
raise bzr_errors.NotBranchError(path=transport.base)
except bzr_errors.InvalidURL:
+ raise bzr_errors.NotBranchError(path=transport.base)
+ except DavRequestFailed, e:
+ if "501 Unsupported method" in e.msg:
raise bzr_errors.NotBranchError(path=transport.base)
+ else:
+ raise
return format
More information about the bazaar-commits
mailing list