Rev 1595: Handle path not found errors on http. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk
Jelmer Vernooij
jelmer at samba.org
Fri Aug 22 14:38:34 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/trunk
------------------------------------------------------------
revno: 1595
revision-id: jelmer at samba.org-20080822133831-8aecb3e2hoe4m6o4
parent: jelmer at samba.org-20080822100807-g30935xqbn5z3wwf
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-08-22 15:38:31 +0200
message:
Handle path not found errors on http.
modified:
transport.py transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'transport.py'
--- a/transport.py 2008-08-21 22:40:14 +0000
+++ b/transport.py 2008-08-22 13:38:31 +0000
@@ -29,8 +29,8 @@
from bzrlib.plugins.svn.auth import create_auth_baton
from bzrlib.plugins.svn.client import get_config
from bzrlib.plugins.svn.core import SubversionException
-from bzrlib.plugins.svn.errors import convert_svn_error, NoSvnRepositoryPresent, ERR_BAD_URL, ERR_RA_SVN_REPOS_NOT_FOUND, ERR_FS_ALREADY_EXISTS, ERR_FS_NOT_FOUND, ERR_FS_NOT_DIRECTORY, ERR_RA_DAV_RELOCATED, RedirectRequested
-from bzrlib.plugins.svn.ra import DIRENT_KIND, RemoteAccess
+from bzrlib.plugins.svn.errors import convert_svn_error, NoSvnRepositoryPresent, ERR_BAD_URL, ERR_RA_SVN_REPOS_NOT_FOUND, ERR_FS_ALREADY_EXISTS, ERR_FS_NOT_FOUND, ERR_FS_NOT_DIRECTORY, ERR_RA_DAV_RELOCATED, RedirectRequested, ERR_RA_DAV_PATH_NOT_FOUND
+from bzrlib.plugins.svn.ra import RemoteAccess
import urlparse
import urllib
@@ -118,6 +118,8 @@
raise NoSvnRepositoryPresent(url=url)
if num == ERR_BAD_URL:
raise InvalidURL(url)
+ if num == ERR_RA_DAV_PATH_NOT_FOUND:
+ raise NoSuchFile(url)
if num == ERR_RA_DAV_RELOCATED:
# Try to guess the new url
if "'" in msg:
More information about the bazaar-commits
mailing list