Mercurial > hgsubversion
changeset 590:5e9ab25e0112
handle nonexistant svn repositories, fixes issue 137
author | Jonathan Kotta <jpkotta@gmail.com> |
---|---|
date | Tue, 09 Mar 2010 20:58:08 -0600 |
parents | f360e1629f5d |
children | 4359ddd73b00 |
files | hgsubversion/svnwrap/svn_swig_wrapper.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -401,11 +401,13 @@ class SubversionRepo(object): callback, self.pool) except core.SubversionException, e: - if e.apr_err not in [core.SVN_ERR_FS_NOT_FOUND]: - raise - else: + if e.apr_err == core.SVN_ERR_FS_NOT_FOUND: raise hgutil.Abort('%s not found at revision %d!' % (self.subdir.rstrip('/'), stop)) + elif e.apr_err == core.SVN_ERR_FS_NO_SUCH_REVISION: + raise hgutil.Abort(e.message) + else: + raise while len(revisions) > 1: yield revisions.popleft()