# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1273839685 -7200 # Node ID aafbf0d40dc2f135bb4490888574ae001930ae91 # Parent d1de8bb6e11ffc8d7371a98a7c1b592dd7cd1700 svnwrap: use SubversionConnectionException instead of mercurial.util.Abort This makes svnwrap independent of Mercurial. diff --git a/hgsubversion/svnwrap/svn_swig_wrapper.py b/hgsubversion/svnwrap/svn_swig_wrapper.py --- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -14,8 +14,6 @@ warnings.filterwarnings('ignore', module='svn.core', category=DeprecationWarning) -from mercurial import util as hgutil - required_bindings = (1, 5, 0) try: @@ -423,10 +421,11 @@ class SubversionRepo(object): self.pool) except core.SubversionException, e: if e.apr_err == core.SVN_ERR_FS_NOT_FOUND: - raise hgutil.Abort('%s not found at revision %d!' - % (self.subdir.rstrip('/'), stop)) + msg = ('%s not found at revision %d!' + % (self.subdir.rstrip('/'), stop)) + raise SubversionConnectionException(msg) elif e.apr_err == core.SVN_ERR_FS_NO_SUCH_REVISION: - raise hgutil.Abort(e.message) + raise SubversionConnectionException(e.message) else: raise