Subvertpy Version String not fully converted

Issue #206 resolved
Former user created an issue

I tried to install against the most recent subvertpy, 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/", 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/ --- a/hgsubversion/svnwrap/ Mon Sep 06 17:08:11 2010 -0500 +++ b/hgsubversion/svnwrap/ 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