Subvertpy Version String not fully converted

Issue #206 resolved
Former user created an issue

I tried to install against the most recent subvertpy 0.7.3.1, and ran hg version --svn to verify the install. This failed because there are only three values forseen for the version of subvertpy:

File ".local/lib/python2.6/site-packages/hgsubversion/svnwrap/subvertpy_wrapper.py", line 45, in version 'Subvertpy %d.%d.%d' % subvertpy.version) TypeError: not all arguments converted during string formatting

adding a [:3] like for the svn version string solves this issue.

Here is the patch:

diff -r d424bd1ac647 hgsubversion/svnwrap/subvertpy_wrapper.py --- a/hgsubversion/svnwrap/subvertpy_wrapper.py Mon Sep 06 17:08:11 2010 -0500 +++ b/hgsubversion/svnwrap/subvertpy_wrapper.py Thu Sep 09 12:08:58 2010 +0200 @@ -42,7 +42,7 @@

def version(): return ('%d.%d.%d' % subvertpy.wc.version()[:3], - 'Subvertpy %d.%d.%d' % subvertpy.version) + 'Subvertpy %d.%d.%d' % subvertpy.version[:3])

# exported values ERR_FS_CONFLICT = subvertpy.ERR_FS_CONFLICT