[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svn_python SWIG bindings & dump file format

From: Ryan Heniser <ryan-he_at_moving-picture.com>
Date: Wed, 16 Sep 2009 16:49:56 +0100

Hello developers,

I am unable to use the svn SWIG python bindings when using python 2.5.1
and svn 1.6.5.

=============================================

[Wed 16-09-09 4:28:48pm] ryan-he_at_georgia:/jobs/rnd_dev > svn --version
svn, version 1.6.5 (r38866)
    compiled Sep 15 2009, 13:29:23

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using
Neon.
   - handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
   - with Cyrus SASL authentication
   - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
   - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using
serf.
   - handles 'http' scheme
   - handles 'https' scheme

[Wed 16-09-09 4:29:02pm] ryan-he_at_georgia:/jobs/rnd_dev > python
Python 2.5.1 (r251, Sep 4 2007, 19:03:53)
[GCC 4.1.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from svn import fs, repos, core
>>> assert (core.SVN_VER_MAJOR, core.SVN_VER_MINOR) >= (1, 6),
"Subversion 1.6 or later required"
>>> repository = repos.open('/mpc/devel/ryan-he/dev/svn/.svn')
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
"/software/subversion/1.6.5/linux.centos4.x86_64/lib/svn-python/libsvn/repos.py",

line 55, in svn_repos_open
     return apply(_repos.svn_repos_open, args)
svn.core.SubversionException: ("Expected repository format '3' or '5';
found format '9'", 165005)
>>> print repos.__file__
/software/python/2.5.1/linux.centos4.x86_64/lib/python2.5/site-packages/svn/repos.pyc
>>> print repos.DUMPFILE_FORMAT_VERSION
3
>>> print _repos.__file__
/software/python/2.5.1/linux.centos4.x86_64/lib/python2.5/site-packages/libsvn/_repos.so
>>> print _repos.SVN_REPOS_DUMPFILE_FORMAT_VERSION
3

=============================================

I took a look at
http://svn.collab.net/repos/svn/trunk/subversion/include/svn_repos.h

There is a hard coded variable SVN_REPOS_DUMPFILE_FORMAT_VERSION at line
2048 that is set to 3. But, I'm not about to kludge it by setting this
to 9 without asking here first. I've blow several hours tracking this
down. Would greatly appreciate some timely help here. Thanks in advance!

Ryan

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2395622
Received on 2009-09-16 19:46:05 CEST

This is an archived mail posted to the Subversion Dev mailing list.