convert_svn ("release early" edition)

TK Soh teekaysoh at gmail.com
Fri Apr 6 14:13:56 UTC 2007


On 4/3/07, Christian Boos <cboos at neuf.fr> wrote:
> TK Soh wrote:
> > ...
> >       from svn.core import SubversionException
> >   ImportError: No module named svn.core
> >
> > Where do I get svn.core module?
>
> You need the Python bindings for Subversion (the swig bindings that
> usually come with Subversion itself).
> If you already have them installed, then they're not in your PYTHONPATH.
>
> Some useful bits of advice:
>  - http://trac.edgewall.org/wiki/TracSubversion#GettingSubversion
>  - http://trac.edgewall.org/wiki/TracSubversion#Checklist

I have installed subversion 1.3.2 with python bindings, but I am
getting some error when running convert-repo:

% /home/tksoh/hg/svn2hg/contrib/convert-repo
file:///home/tksoh/svnbank/tests/svnproject1 svnproject1-hg
Traceback (most recent call last):
  File "/home/tksoh/hg/svn2hg/contrib/convert-repo", line 838, in ?
    command(*args, **opts)
  File "/home/tksoh/hg/svn2hg/contrib/convert-repo", line 806, in command
    srcc = converter(src)
  File "/home/tksoh/hg/svn2hg/contrib/convert-repo", line 661, in converter
    return c(path)
  File "/home/tksoh/hg/svn2hg/contrib/convert-repo", line 104, in __init__
    self.transport = transport.SvnRaTransport(url = url)
  File "/home/tksoh/hg/svn2hg/contrib/transport.py", line 82, in __init__
    self.ra = svn.ra.open2(self.svn_url.encode('utf8'),
self.callbacks, svn_config, None)
  File "/eng/home/tksoh/usr/solaris/lib/svn-python/libsvn/ra.py", line
350, in svn_ra_open2
    return apply(_ra.svn_ra_open2, args)
TypeError: argument number 3: a 'void *' is expected,
'instance(<libsvn.core.apr_hash_tPtr; proxy of C apr_hash_t instance
at _004d0a20_p_apr_hash_t>)' is received

>From ra.py it looks like svn_ra_opens() has a different number of parameters:

def svn_ra_open2(*args):
    """
    svn_ra_open2(svn_ra_session_t session_p, char repos_URL,
svn_ra_callbacks2_t callbacks,
        void callback_baton,
        apr_hash_t config, apr_pool_t pool) -> svn_error_t
    """
    return apply(_ra.svn_ra_open2, args)

FYI, my platform is Solaris 2.6.



More information about the Mercurial-devel mailing list