Mercurial > hgsubversion
changeset 1364:460332aafe7d stable
swig: change current_bindings to subversion_version
This makes the version tuple the same between swig and subvertpy,
which will be used to detect too-new-for-stupid-mode bindings.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Thu, 31 Dec 2015 12:04:22 -0500 |
parents | 3c213ca49f7e |
children | 89997a5fc181 |
files | hgsubversion/svnwrap/svn_swig_wrapper.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/svnwrap/svn_swig_wrapper.py +++ b/hgsubversion/svnwrap/svn_swig_wrapper.py @@ -22,19 +22,19 @@ try: from svn import delta from svn import ra - current_bindings = (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, - core.SVN_VER_MICRO) + subversion_version = (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, + core.SVN_VER_MICRO) except ImportError: raise ImportError('Subversion %d.%d.%d or later required, ' 'but no bindings were found' % required_bindings) -if current_bindings < required_bindings: # pragma: no cover +if subversion_version < required_bindings: # pragma: no cover raise ImportError('Subversion %d.%d.%d or later required, ' 'but bindings for %d.%d.%d found' % - (required_bindings + current_bindings)) + (required_bindings + subversion_version)) def version(): - return '%d.%d.%d' % current_bindings, 'SWIG' + return '%d.%d.%d' % subversion_version, 'SWIG' # exported values ERR_FS_ALREADY_EXISTS = core.SVN_ERR_FS_ALREADY_EXISTS