我试图使用Python SVN绑定(pysvn)做一个仓库的出口,我遇到了以下错误:如何在使用pysvn尝试SVN导出时解决此错误?
python: subversion/libsvn_subr/dirent_uri.c:955: svn_dirent_join: Assertion `svn_dirent_is_canonical(base, pool)' failed.
Aborted (core dumped)
的示例代码:
import pysvn
client = pysvn.Client()
uri = 'https://svn.mycompany.com/myproject/trunk/'
# This works fine
print client.list(uri)
# This crashes with the above error
r = client.export(uri, './temp', force=True)
但是,这样做来自shell提示符的svn export --force https://svn.mycompany.com/myproject/trunk/
没有问题。
我使用:
- 的Python 2.7.3
- 颠覆1.7.5
- 的CentOS 6.0 x64的
任何想法,请?
如果你尝试用绝对路径,而不是./temp什么? subversion/libsvn_subr/dirent_uri.c:955行是assert(svn_dirent_is_canonical(base,pool));所以问题是与路径格式 – 2012-07-24 09:08:39